Chris Smith
20f3e950cb
Tidy up some common parser files.
Change-Id: I3ed34a6e2dc899c24ba39b198b748be7c0f1812c
Reviewed-on: http://gerrit.dmdirc.com/3951
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 9 години
Greg Holmes
31d3ebc5be
Tidy up SRVRecord.
Adds an AutoCloseable version of InitialDirContext.
Fixes-Issue: CLIENT-521
Change-Id: I5248d2f50ec8da01c90fd607e72c5eac66451cf3
Reviewed-on: http://gerrit.dmdirc.com/3950
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 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
91dcca4b37
Build file changes to support automatic publishing.
Change-Id: Ibb2517bcbcc9d1840328e04b5a315cb44f2823d5
Reviewed-on: http://gerrit.dmdirc.com/3900
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 9 години
Chris Smith
05193afc49
Use same property names as the client.
Change-Id: Iba6286466d91708a0b519e3c51cafd4d017ad7db
Reviewed-on: http://gerrit.dmdirc.com/3899
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 9 години
Chris Smith
6c246b5e6b
Remove redundant cast.
Change-Id: I09635df097c63ddef22462160a3c94f72772be40
Reviewed-on: http://gerrit.dmdirc.com/3881
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 9 години
Chris Smith
ca4d10b564
Fix pointless array creation.
Change-Id: I5e57e40476bdfade587f3bb86d865e7eb2b3e29b
Reviewed-on: http://gerrit.dmdirc.com/3880
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 9 години
Chris Smith
789029e740
Tidying.
Remove pointless super() calls.
Remove redundant interface decs.
Remove unnecessary enum annotations.
Change .length == 0 to .isEmpty.
Change-Id: Ic89c70772063157e970f046b1cd04980a60bc1a8
Reviewed-on: http://gerrit.dmdirc.com/3844
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 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
083cced6cc
Remove pointless inheritDocs.
Change-Id: I8e7e36bec9e6231f7596cd0a788649a27bdc8b1f
Reviewed-on: http://gerrit.dmdirc.com/3809
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
fee3a70bb9
Typo fix.
Change-Id: Ic2a1b97aa44e9168bae4a1e28941208e7711bb46
Reviewed-on: http://gerrit.dmdirc.com/3741
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
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 >
преди 10 години
Greg Holmes
3ee6e16fe0
Handle callbacks imports better in the parser
Change-Id: Ib561477b4fbb5eeef0fa459a9bf20f7f37720f7b
Reviewed-on: http://gerrit.dmdirc.com/3618
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 10 години
Greg Holmes
f21d923df2
Fix compiler warnings.
Change-Id: I3c7a6b5c9139928687422b0044e37c6ee975c00d
Reviewed-on: http://gerrit.dmdirc.com/3575
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 10 години
Shane Mc Cormack
73aae22605
Capabilities are not auth notices.
Change-Id: I686dd4b6cd64853eed4d407e3d10471ea1a0b7fd
Fixes-Issue: CLIENT-477
Reviewed-on: http://gerrit.dmdirc.com/3237
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 10 години
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 години
Shane Mc Cormack
b02cb4ddef
Add support for binding to IPv6 addresses.
Change-Id: Iaf88955e20a8797c0f20924ef343626a435af91f
Reviewed-on: http://gerrit.dmdirc.com/2970
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Shane Mc Cormack
a7d737936a
Let proxies worry about which target to connect to, v4 or v6.
Change-Id: If346fc78ffb10e4302d129fd16386370398bec1d
Reviewed-on: http://gerrit.dmdirc.com/2971
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Shane Mc Cormack
2c47c6ddcb
Fix formatting errors introduced in 6864a35fa2ca95b7dfbb1137a620e6fb33512c07
Change-Id: I7ed80c3e353e8f68f97928555e4f6e114a03b755
Reviewed-on: http://gerrit.dmdirc.com/2901
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
53058f9df3
Add missing null check to OutputQueue when changing the enabled state of the queue.
Change-Id: I8e74b3d9a247c289c96cd22736bcc4636f222996
Reviewed-on: http://gerrit.dmdirc.com/2839
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 10 години
Chris Smith
c15082c7b5
Make CHANTYPES handling somewhat sane.
Get rid of weird round-the-houses method of processing, and avoid
duplicating the value in a map and a field.
This fixes our handling of servers doing really stupid, theoretical
things like resetting the CHANTYPES they support. (And by "fixes"
I mean the parser will keep state, while everything else burns
around it.)
Change-Id: Ie4936f21e68e4bb1134e9be3f16932eef4ab086f
Reviewed-on: http://gerrit.dmdirc.com/2831
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
преди 10 години
Chris Smith
d94427df6b
Fix some warnings
Change-Id: Ib9222a1a0ddf182fe9c092fa2340c3954c251848
Reviewed-on: http://gerrit.dmdirc.com/2815
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Chris Smith
536bec635e
A List of Characters... AKA a String.
Change-Id: I4ee609a42962a025e022315e64d199d1a8ecf3ba
Reviewed-on: http://gerrit.dmdirc.com/2814
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Chris Smith
1130b835a6
Add some range checking.
Change-Id: I907f185d82fb4f7273eb5341acd100815688c4f2
Fixes-issue: CLIENT-406
Reviewed-on: http://gerrit.dmdirc.com/2813
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Chris Smith
dac7f08707
Tidy up the 004/005 processor a bit.
Introduce methods for handling individual bits, instead of having
a pair of giant if statements of doom.
Tidy some comments and formatting up at the same time.
This is functionally the same as it was before.
Change-Id: I83f09cb6c36be203d102c44188f90de2b0587e58
Reviewed-on: http://gerrit.dmdirc.com/2812
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Greg Holmes
d23d2d9c14
Bump java version, if allowed?
Change-Id: I69e3dde890fef13c31cf519523ce447a27ba29b9
Reviewed-on: http://gerrit.dmdirc.com/2701
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 10 години
Chris Smith
64721a52b7
Fix build warnings.
Change-Id: Ia13810eaecc9b387247c17948190ed5ccb692e14
Reviewed-on: http://gerrit.dmdirc.com/2667
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 10 години
Shane Mc Cormack
1b2c2adeaf
Fix LICENCE file name and add AUTHORS file.
Change-Id: Idcb2ad40b09e56a43a4931e337fe097db8996aad
Reviewed-on: http://gerrit.dmdirc.com/2649
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 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
50eaacee9e
Don't check for SRV Records if a port is specified.
Change-Id: I6e48c0092c26fc5faec05f6400b9b35d12f91902
Reviewed-on: http://gerrit.dmdirc.com/2577
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 11 години
Shane Mc Cormack
0f7a33fd23
Check for nulls.
Change-Id: I15144999a27f9f022bd0f27ba0967048e58da182
Reviewed-on: http://gerrit.dmdirc.com/2570
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 11 години
Shane Mc Cormack
6e58fcddd2
Add support for SRV records for finding IRC servers. eg irc://quakenet.org/
Of the top 20 networks, it looks like only quakenet support it right now,
but it makes sense and allows for multiple servers to exist on the same IP
with different ports without needing to know the ports.
Eg for a test network you could just connect to irc://inspircd.testnetwork/
or irc://ircu.testnetwork/ without needing to remember the ports.
Change-Id: Ia366292e64b2ca46cb8658b34fdac598fa155722
Reviewed-on: http://gerrit.dmdirc.com/2567
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 11 години
Shane Mc Cormack
cfac5e3512
Seems ircd developers have standardised on 6697 as the default SSL port, so we should also.
Change-Id: I00f141e3fd4090131d116f103cae34a051bf89c1
Reviewed-on: http://gerrit.dmdirc.com/2566
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 11 години
Shane Mc Cormack
52c8058273
Expose some new methods via the parser interfaces
Change-Id: I701d0dca3e03fc8f5f03356a641bb5985c3c661e
Depends-On: I4395b5b15edf196390244da0658c47ca9c0dcda0
Reviewed-on: http://gerrit.dmdirc.com/2547
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Shane Mc Cormack
9377336d5d
Add state-tracking to capability commands.
Add support for "away-notify" capability (http://ircv3.atheme.org/extensions/away-notify-3.1 )
Add support for "account-notify" capability (http://ircv3.atheme.org/extensions/account-notify-3.1 )
Add support for "extended-join" capability (http://ircv3.atheme.org/extensions/extended-join-3.1 )
Don't bother negotiating UHNAMES or NAMESX using PROTOCTL if we have already enabled the userhost-in-names and multi-prefix capabilities with CAP
Don't bother asking for TSIRC using the TIMESTAMPEDIRC command if we have negotiated it using CAP
Rename "tsirc" capability to "dfbnc.com/tsirc" as a non-standard capability
From a DMDirc point of view, capabilities probably need exposing through the general interface somehow so that if (for example) away-notify is enabled, the client doesn't still send lots of WHOs.
Change-Id: Ice7a8ceae5595a364881e5a1fbe2d7fbdef9a639
Reviewed-on: http://gerrit.dmdirc.com/2544
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Shane Mc Cormack
cb1c1ad110
Add support for "CAP" extension.
(See: http://www.leeh.co.uk/draft-mitchell-irc-capabilities-02.html )
Change-Id: I9aaf2877770f86a93c9f8c525bea6315a7a8802b
Reviewed-on: http://gerrit.dmdirc.com/2541
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Shane Mc Cormack
55b49488c9
Fix some INSPIRCD list mode parsing
Change-Id: I88eee521770db9ec756a9c18c28f935cdbdc19d7
Reviewed-on: http://gerrit.dmdirc.com/2542
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Greg Holmes
09768c378f
Add away reason to ClientInfo
Change-Id: Id43956b2fad628754196aea3782d4892f3b768a5
Reviewed-on: http://gerrit.dmdirc.com/2537
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Greg Holmes
b9d04d47ce
Add ant files to publish to maven
Change-Id: I0f247f1fd7ecfd434777845d194812a219246319
Reviewed-on: http://gerrit.dmdirc.com/2507
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 12 години
Shane Mc Cormack
f0561f7dc1
Add LICENSE file to project to cover any files that don't otheerwise currently contain a license header.
Change-Id: I7f7aae8a819f464a99ee3f0169ca2258bf046997
Reviewed-on: http://gerrit.dmdirc.com/2526
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Greg Holmes
8e107225be
Add quit method to Parser
Change-Id: Ib1038c0d46b0c1f2de15050bb772fe519417d7bd
Reviewed-on: http://gerrit.dmdirc.com/2534
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
преди 11 години
Shane Mc Cormack
8d49cae8c1
make addAllCallback actually useful.
Previously it added an object as a callback target even if it didn't implement the callback handler, this was pointless and stupid, now it checks.
Change-Id: I24ce9f063a0f1f95e84ad2ae28a67e335cd63afe
Reviewed-on: http://gerrit.dmdirc.com/2519
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 11 години
Shane Mc Cormack
f1f02b4f4f
Updated version.
Change-Id: I399f70e589c94570c2e9e96c8d2a92a66448e627
Reviewed-on: http://gerrit.dmdirc.com/2518
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 11 години
Shane Mc Cormack
3ce9380cf5
Try to connect using IPv6 before IPv4, and falling back if there are errors.
Change-Id: I56e7ab284abb91e22bf5c35b73035302a85b45b4
Reviewed-on: http://gerrit.dmdirc.com/2513
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 12 години
Shane Mc Cormack
3ba51d9531
Make BaseParser ask ProxySelector for the proxy to use.
Change-Id: I3ac4dcb46143d29ce2f3304f5cf81d3e4e3943c3
Reviewed-on: http://gerrit.dmdirc.com/2510
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 12 години
Greg Holmes
bb4f862374
Convert parser to standalone project
Change-Id: Id91f50347ce9a63ebbfa0be1792c0feba7348d87
Reviewed-on: http://gerrit.dmdirc.com/2503
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 12 години