Shane Mc Cormack
9bab62102d
Fix calls to callDebugInfo that use string concatenation not string formatting.
пре 5 година
Shane Mc Cormack
ed4b36c1dc
All IRCProcessors should parse the dates from the server where provided, not just some of them.
пре 7 година
Shane Mc Cormack
4f3e74dbff
Add timestamps to some events that should have them. Fixes DMDirc/DMDirc#795
пре 7 година
Shane Mc Cormack
7a0c767c12
Update copyright for 2017
пре 7 година
Chris Smith
5ed8865670
Restructure to standard maven/gradle layout.
Stop swimming against the tide and accept what most of the rest of
the world does.
While it adds an annoying depth to the actual source code, it makes
the root directory nicer (no more 'test-res' dirs), means we don't
have to override the gradle config, and makes it nicer to work in
IDEA 2016.1.
пре 7 година
Chris Smith
6306f1d00b
Migrate parser events to use new date APIs.
Java 8 introduces a sane API for dates; to store datettimes
we should now be using LocalDateTime.
пре 8 година
Chris Smith
528d7ddd31
Use fake clients in a couple of places.
пре 9 година
Chris Smith
0b786eef84
Start using dagger.
пре 9 година
Chris Smith
db20dd3434
Remove unused circular dep, tidy tests.
Remove all tests that depend on TestParser - they're rubbish and
need to be completely rewritten to be proper unit tests.
пре 9 година
Chris Smith
861b7f4e33
Delete callback interfaces.
пре 9 година
Chris Smith
4301740680
Publish events.
пре 9 година
Shane Mc Cormack
177bbb5f9a
2015!
пре 9 година
Chris Smith
1a6a31d9ea
Make IRCProcessor implement handles().
Seems a bit odd for each implementation to define a method that
*always* returns a static String[] when we can just pass that
up to the base class.
пре 9 година
Chris Smith
3f6318d3d2
Quit passing null into callbacks.
пре 9 година
Chris Smith
b01c257343
Don't expose the CallbackManager to processors.
Just add a utility method to get the callback proxy instead.
Think this is a bit nicer, and is one less thing to have to change
if we switch to events.
пре 9 година
Chris Smith
d25b195470
Remove all usages of getCallbackType.
All callbacks are now done through getCallback, which offers
type safety (gasp!) and is potentially extensible in the future
(wow!).
This means that nothing can depend on callbacks existing, so
there are two functional changes:
- the parser will no longer disconnect automatically on failed
pings; users have to listen for the event and handle it
themselves;
- the parser will no longer attempt to automatically use alt
nicknames or create new nicknames on connection; users have to
listen for the event and implement the logic themselves
Both of these were really weird anyway, as adding a listener (even
for debugging purposes) disabled the built-in behaviour.
пре 9 година
Chris Smith
ac736524d8
Split irc/common into separate dirs.
Change-Id: I1d81392650d8193503621b2e69fbe66cd0eb736a
Reviewed-on: http://gerrit.dmdirc.com/4058
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
830e54a9f7
Apply most inspections to the processors package.
Change-Id: I0034aa2dfa84a00adb47e7b6e766108aaf1f8c78
Reviewed-on: http://gerrit.dmdirc.com/3994
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
54975ded5f
Make the last of the mode managers private.
Change-Id: I8b17836354297969cf9ee69b289f7abd5e03c9ad
Reviewed-on: http://gerrit.dmdirc.com/3984
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
d5d2e2ee2c
Make user mode manager private.
Change-Id: I73277924a0d969daffca36f21f35dada42e2c3cf
Reviewed-on: http://gerrit.dmdirc.com/3982
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
44bad31051
Make the prefix mode manager private.
Pass it in when needed.
Change-Id: I8709e9363bbd8f2811946839d03876c1308cf6d9
Reviewed-on: http://gerrit.dmdirc.com/3980
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
b72a5d72e8
Use a ModeManager for boolean chan modes.
Change-Id: Ie4986e34e3408a8906c99b0c318ccbe58c8d5019
Reviewed-on: http://gerrit.dmdirc.com/3964
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
4f6ce3bb3f
Use a ModeManager for boolean user modes.
Change-Id: Ia4b9a93b529e734b4d7c9194ee4db6f9c2175590
Reviewed-on: http://gerrit.dmdirc.com/3963
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
f1adab8673
Remove external usages of prefix mode bitmaps.
Prefix modes are now stored as a string, with the most important
mode at the start (e.g. "ohv").
Change-Id: Ie51e6bf8bf7a46e80295ed5cf000ffb4b0195e0b
Reviewed-on: http://gerrit.dmdirc.com/3954
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
3208c0ae37
Add a manager for prefix modes.
This removes a tiny bit of the ugly logic in IRCParser and hides
it away slightly.
Change-Id: I66b2b17d302186b5e48c839f2fa276f1a2234f6b
Reviewed-on: http://gerrit.dmdirc.com/3953
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
0e461954b7
Move processors into their own package.
Make all package-private fields and methods they hackily touched
into public, for now.
Change-Id: Ica056a901535b0c0f503283d27ff5210fe625d26
Reviewed-on: http://gerrit.dmdirc.com/3952
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
40422dd5b1
Tidy a little
Change-Id: I319dfca0531ee94ade26fae6980f7a38b33a9c48
Reviewed-on: http://gerrit.dmdirc.com/3945
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
254baff399
PMD fixes
Change-Id: Ifc4aa601de14ca2526646f499f60329ed7c5935e
Reviewed-on: http://gerrit.dmdirc.com/3937
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
4d3eb87f06
Final a few things
Change-Id: I22300a4ec7a09ee30a1fbc4d6fb91ff049ca3e39
Reviewed-on: http://gerrit.dmdirc.com/3839
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
ef3add55bf
Tidying
Change-Id: If94166e179b88d1700ae7eb89c03d71e35df7f51
Reviewed-on: http://gerrit.dmdirc.com/3801
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
c0fb61da4f
Minor tidying.
Change-Id: I4d9c708ae950ae09cc7eb0bf14c8f424f791f5fe
Reviewed-on: http://gerrit.dmdirc.com/3687
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Shane Mc Cormack
077e65c71e
Update Copyright to 2014
Change-Id: Iad5e74e45bb052f65b761ce8e334b571838edc10
Reviewed-on: http://gerrit.dmdirc.com/2978
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 10 година
Greg Holmes
6864a35fa2
Java 7 conversions
Change-Id: Id834157281c02302bfe6f71201042712144b22ff
Reviewed-on: http://gerrit.dmdirc.com/2894
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 10 година
Greg Holmes
f05823ce1c
Tidy javadoc
Change-Id: If8c377f64b3b336203ab4d01aaaa0a731f0545a1
Reviewed-on: http://gerrit.dmdirc.com/2885
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 10 година
Shane Mc Cormack
807ad3358b
Update copyright for 2013
Change-Id: I1c711ca0525af9a78cbd7c07876eaf6cc91c1434
Reviewed-on: http://gerrit.dmdirc.com/2604
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 11 година
Shane Mc Cormack
afbd2870b3
Update copyright for 2012
Change-Id: Ie7236e561d04eed00576a8ff6b43228106d3bff5
Reviewed-on: http://gerrit.dmdirc.com/2288
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 12 година
Shane Mc Cormack
1f8d164115
Add some more parser debugging.
Ignore modes for clients not on the channel.
Change-Id: If5a89ca2450e2583005045af60bdfc00b2a88765
Reviewed-on: http://gerrit.dmdirc.com/2138
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 13 година
Greg Holmes
002b8b2aa2
Change header?
Change-Id: I4a4bd2f45c18759bced41fc0aec1e570f11dfa6f
Reviewed-on: http://gerrit.dmdirc.com/2073
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 13 година
Chris Smith
997985fb97
Style/license fixes
Change-Id: Ie91dc5f95b405c3664884b830bbc47dfeb282790
Reviewed-on: http://gerrit.dmdirc.com/1978
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 13 година
Chris Smith
69c5e57258
Style fixes
Change-Id: Ia1d78711f050f6938753a1e8e1dd5dd8b1457b5d
Reviewed-on: http://gerrit.dmdirc.com/1977
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 13 година
Shane Mc Cormack
f5c407dad2
Update Copyright
Change-Id: I4a6c51789e37e0f96967344c98010ee7ff760506
Reviewed-on: http://gerrit.dmdirc.com/1723
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
пре 13 година
Greg Holmes
83e12d6517
Fix PMD bugs in parser.
Change-Id: Ifd55c3c04740aa88f349aae5abee7fa817b82e39
Reviewed-on: http://gerrit.dmdirc.com/1692
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 13 година
Gregory Holmes
6e2c46187b
Style fixes
Change-Id: Ic91544916082a64c1add84fd9e0b68dd91552c40
Reviewed-on: http://gerrit.dmdirc.com/1598
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
пре 13 година
Chris Smith
b2a61ceabf
Style fixes
Change-Id: I920ca1847ac1af6cf3a13e891e6340f68c6abb91
Reviewed-on: http://gerrit.dmdirc.com/1335
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
пре 14 година
Chris Smith
acde4c2d05
Style fixes
Change-Id: I51d0e3c7975740b1ede5d6226639022bd15a482a
Reviewed-on: http://gerrit.dmdirc.com/1328
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
пре 14 година
Greg Holmes
740e8282a6
Import order fixing
Change-Id: I5fbdce2c0b0258d19e3dbb962826e3310616748d
Reviewed-on: http://gerrit.dmdirc.com/1326
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
8020751b37
Update the copyright date on all files.
Change-Id: I581861c8c8743cb835c45d128c4b4768372de807
Reviewed-on: http://gerrit.dmdirc.com/201
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Shane Mc Cormack
9ab7685689
Rather than raising the user-error then continuing anyway knowing its going to fail, just continue on to the next mode.
Fixes issue 3104.
Change-Id: I6e9b5c3a3d0e9d3cbe6aa9ef3252650509a610eb
Reviewed-on: http://gerrit.dmdirc.com/87
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
6c97cd0869
Initial commit of parser stuff.
пре 15 година