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
fdd13d0f49
Minor style fixes.
пре 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.
пре 8 година
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
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
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
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
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
3f23300f78
Add support for "TimestampedIRC" (See: http://shanemcc.co.uk/irc/#timestamping)
- This is used for backbuffer support in DFBnc, we currently only care about timestamps in
ProcessMessage, everything else will just use the current time in their callbacks as before.
Change-Id: I248bfd4d72800465ba4b06331261a8519690c3d5
Reviewed-on: http://gerrit.dmdirc.com/2172
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 12 година
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 година
Gregory Holmes
5879a8cec2
Tabs -> Spaces for IgnoreList (No changes made)
Ignore PatternSyntaxException in ProcessMessage (needs validation done on adding, see issue 3731)
Fixes issue 3730
Change-Id: I0acece1f2c6c7b2c242c15c5240553de3b024455
Reviewed-on: http://gerrit.dmdirc.com/932
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Gregory Holmes
9c2c63dc87
Adds callbacks for server notices issue 2993
Change-Id: Ic28eb35b5b606584ce76e08034b643c1e9f31d7c
Reviewed-on: http://gerrit.dmdirc.com/491
Tested-by: Gregory Holmes <greboid@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <devs-public@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@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
8752ba617a
Move 'prefix' elsewhere.
пре 15 година
Shane Mc Cormack
6c97cd0869
Initial commit of parser stuff.
пре 15 година