Shane Mc Cormack
358c888c70
Fixes issue 0003604: Ternary away states
Change-Id: Iad1585549ff0853ab20ab0f2e7ff0dfe98e2164b
Reviewed-on: http://gerrit.dmdirc.com/612
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: Chris Smith <chris@dmdirc.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
dd2ac4bda7
Probably fixes issue 3576.
Also tidies up using ssl sockets.
Change-Id: Id6dce00bb70886f85212014d45ef8fbdf7ccab58
Reviewed-on: http://gerrit.dmdirc.com/590
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Chris Smith
0b69437aad
Add parser method to update parser with a URI
Issue 3254
Change-Id: I7b7d1ba7daa5d8b5c4ec0838163d67de039b616c
Reviewed-on: http://gerrit.dmdirc.com/565
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
a51871c405
Use the right key.
Change-Id: Ie58e89fa0cfa7a510561bdf387125bcc5d0ba854
Reviewed-on: http://gerrit.dmdirc.com/551
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
f3b102eea4
s/0.6.4/0.6.3/
Change-Id: If046e74b8330cf9f643f30f603cad59071da94c1
Reviewed-on: http://gerrit.dmdirc.com/542
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
f6104b82fd
Add getChannelPrefixes method
Issue 2819
Change-Id: I80a6a36a1a19ccf41f3847bfbb1641c73d3a5bf2
Reviewed-on: http://gerrit.dmdirc.com/531
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
8b5675f530
Get rid of bizarre map usage in parser
Change-Id: I0d43cc37f13085f59e417c1f7c4ffd48d5c54cd2
Reviewed-on: http://gerrit.dmdirc.com/530
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
51fb3bbadd
OFTC/Hybrid shouldn't request +eI for non-ops
Fixes issue 3532
Change-Id: I8412d80e6f240787e3eadf10d1ecb9bb80b20f29
Reviewed-on: http://gerrit.dmdirc.com/516
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
d0f3dd65ba
Fixes issue 0003497: LISTMODE should fire one callback for each list mode type retrieved
Change-Id: I0e3b0aa861b1f7e6da1e033708ca77ff6f0a399b
Reviewed-on: http://gerrit.dmdirc.com/472
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: 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 година
Chris Smith
d5500414d2
Expose ChannelInfo.requestListModes
Fix some minor javadoc errors
Fixes issue 3499
Change-Id: I80de1df17532e9ab6c3c5cf4884a946d2046702e
Reviewed-on: http://gerrit.dmdirc.com/471
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Chris Smith
07b4660ed5
Remove unused and non-existant import
Change-Id: I569fd757b31e9892b1db40a91a16d2b1dca3b680
Reviewed-on: http://gerrit.dmdirc.com/467
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Chris Smith
3ac2bf9d29
Down with dodgy harness classes, up with mocks!
Change-Id: I48ceb58b942dfb017e8698d4b9bca5a1e11dfb61
Reviewed-on: http://gerrit.dmdirc.com/462
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Chris Smith
e749bc70ff
Unit test changes
Move parser test harness to parser module
Change-Id: Ic4003a54acfcadd2c0a52978bb3e4acd5c91dedd
Reviewed-on: http://gerrit.dmdirc.com/455
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Shane Mc Cormack
df59dd7249
"Unable to discover max list modes" error is now a user-error. (Kinda Fixes issue 3152!)
Impart some knowledge for OtherNET wrt to mode handling.
Change-Id: Ib4c545f9ef0f38a1a9d9d695d309b088784b964c
Reviewed-on: http://gerrit.dmdirc.com/435
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
ee73a74211
Add ServerTypeGroup to allow grouping of servers with common behaviour. (Fixes issue 3491).
Switch everything that does something on a per-ircd basis to use ServerTypes not Strings.
Deprecate getIRCD() in favour of getServerSoftware() and getServerSoftwareType().
Change-Id: I324eaadeb39a9999f7dd9d7b8e6bd583dce7abca
Reviewed-on: http://gerrit.dmdirc.com/431
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
e7ddfd220d
Inspircd defaults to hiding +eI.
Fixes issue 3487.
Change-Id: I7bbbe96a6b89541a037ceaae603b02bc14a31d81
Reviewed-on: http://gerrit.dmdirc.com/430
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
82d52c525c
Support for Othernet. (Fixes issue 3143)
Change-Id: I5cdbc742081081d510664e3d824cc260b5ea348d
Reviewed-on: http://gerrit.dmdirc.com/429
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
1e72836479
Fixes issue 2742 (Austhex uses +q and +a)
Fixes issue 2743 (Austhex now calls itself 8.1.6)
Fixes issue 2745 (Austirc is now IRSee)
Fixes issue 2739 (Support for ircd-seven)
Fixes issue 2740 (Support for ircd-rizon)
Fixes issue 3178 (Plexus +eI)
Fixes issue 3044 (Austhex +eI)
Change-Id: Ib35c724607e4167f572201fcd322ad9533f3eaa2
Reviewed-on: http://gerrit.dmdirc.com/428
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
32801b4a09
Abstract server software stuff nicely.
Fixes issue 2260.
Change-Id: Ib74eaca55eeeca83e17a3d78fb15de42e552c8f2
Reviewed-on: http://gerrit.dmdirc.com/427
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
8a059f2824
Don't send empty join lines. Fixes Issue 3462.
Change-Id: I9bc05a23fb23c12951dd76b5d4abf517f8042972
Reviewed-on: http://gerrit.dmdirc.com/405
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
1d681e5897
These changes were supposed to be commited!
Change-Id: I86aa3ddec879e915001c8833ddc6187109333463
Reviewed-on: http://gerrit.dmdirc.com/399
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
e19e88fbd5
Make joinChannel more intelligent. This should refix issue 3112.
Change-Id: I98d9743d99963fbce64ac397c53e74e60a035674
Reviewed-on: http://gerrit.dmdirc.com/398
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
270f1facd8
Name the queue handler thread
Change-Id: I92ae39757091bc49fc9142218c7bc96df8f79d4f
Reviewed-on: http://gerrit.dmdirc.com/393
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
47d260fec6
Update unit tests
Change-Id: Ia1d836951e1b4004f7c94f64c5c0b0dd2788e07e
Reviewed-on: http://gerrit.dmdirc.com/359
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@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
d034219a61
Fix issue 3253
Change-Id: Icced6db19bad07e28aeb87f558497cd83314ffe8
Reviewed-on: http://gerrit.dmdirc.com/178
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
1d1f17c971
This probably fixes issue 2756.
Change-Id: If93ad60bea4eaceaf71fb1c4984a3a78f263af27
Reviewed-on: http://gerrit.dmdirc.com/149
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
8d876698e5
Fixes issue 3231.
Change-Id: I2f9078caa4eec957d5bdda310b619916b4132293
Reviewed-on: http://gerrit.dmdirc.com/144
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
44f40e3049
Channel Parsing now includes query bits. Fixes issue 3213
Change-Id: I4f78dff4375396396878dd0b9fd81960b495f7d9
Reviewed-on: http://gerrit.dmdirc.com/127
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
03dcb03936
getURI() now always returns a valid URI. Fixes issue 3209
setURI() now actually sets the URI rather than just parsing it and doing nothing with it. Fixes issue 3210
If the URI given to the parser has no port or an invalid port, default to 6667. Fixes issue 3208
Change-Id: I90ac6dbcc6544d82effee6dcd655d87d05126742
Reviewed-on: http://gerrit.dmdirc.com/126
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
0e1eb49b56
Add getMap() to Parser and IRCParser. Fixes issue 3206
Add getMap() to ChannelInfo and make getMap() in IRCChannelInfo behave the same way as in IRCClientInfo and IRCChannelClientInfo
Change-Id: I2cdce2eb87e77139520254eec98b51288510f043
Reviewed-on: http://gerrit.dmdirc.com/125
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Shane Mc Cormack
857732b97e
Add getURI() to parser, fixes issue 3204
Change-Id: Ie82ce41dd626ef36f4c1f71934e92c418efb3d09
Reviewed-on: http://gerrit.dmdirc.com/124
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Shane Mc Cormack
d0b2bd1b72
Add getBindIP() to parser, fixes issue 3205
Change-Id: I5d85396d77d0b50387519715a5b8c05d7e084232
Reviewed-on: http://gerrit.dmdirc.com/123
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
пре 14 година
Shane Mc Cormack
683f094627
Rework how the IRCAuthenticator works:
- IRCAuthenticator only stores a username/password for a proxyhost:proxyport pair for as long as there are servers registerd that use that proxy. (Servers configured to use the proxy but with no username/password are not known by the IRCAuthenticator)
Rework how the IRCParser uses the IRCAuthenticator:
- Connecting to any socks-proxied server is now semaphored to 1 at a time so that it shouldn't be possible for the IRCAuthenticator to know of more than 1 username/password pair at a time (which negates the need for the above change when used by this IRCParser)
This should prevent the issue described in issue 1852 from happening.
Change-Id: Ifaa3aaca5aafcddf11b2e8fcbc691903c2fefd10
Reviewed-on: http://gerrit.dmdirc.com/112
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
cb5dc5a942
Handle channels in URLs.
This should work for most cases of irc links, but irc://irc.quakenet.org/#foo,#bar will cause URI to complain long before it gets to the parser to even attempt to handle it. (Altho the /newserver command makes it appear as "Invalid port")
Fixes Issue 3112
Change-Id: I45f38664753eaf446880f7d6c36fade0328dcca2
Reviewed-on: http://gerrit.dmdirc.com/107
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Shane Mc Cormack
89ea3b3c47
Fixes Issue 2988 that shouldn't happen. If it happens again then there will be some debugging to help.
Change-Id: Ia2ac191cf21a97eec73734b789e8f75b35bcb8f3
Reviewed-on: http://gerrit.dmdirc.com/90
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
33e3d88f88
If for some reason there are no tokens from tokeniseLine (I can't reproduce) then add an empty one.
Fixes issue 3069.
Change-Id: I832f3caa972ff491a61dfd2f7eca2e715fde8903
Reviewed-on: http://gerrit.dmdirc.com/89
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Shane Mc Cormack
f0a697dcff
Rename Bits -> bits
If we have a 0-length string just ignore it.
Fixes issue 2942
Change-Id: I963aab86ff426fed0fa22fdbd1b3dce36818106a
Reviewed-on: http://gerrit.dmdirc.com/88
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@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
c2748a8685
Make some on connect errors user errors.
Issue 3111
Change-Id: Ieb8ca1c74cbe1e8fd9c9ba1ff4934fe3db1729c4
Reviewed-on: http://gerrit.dmdirc.com/86
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
пре 14 година
Chris Smith
44f924caa0
Support passwords
Fixes issue 3113
Change-Id: I5d6c28039ac104f6809e5a4cc97da2dd5da1931c
Reviewed-on: http://gerrit.dmdirc.com/77
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
bfe9582557
s/0.6.3m3/0.6.4/
Change-Id: I0ca6f30dd39aaa4ddf48fc52b8cf98529c5a35a8
Reviewed-on: http://gerrit.dmdirc.com/63
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
пре 14 година
Chris Smith
618e76f061
Add initial support for working with URIs.
Issue 2921.
пре 14 година
Chris Smith
951def5c44
Various minor style fixes
пре 14 година
Shane Mc Cormack
d000e2734c
Send a Topic discovery if we get an end of names before we get a topic. Fixes issue 3095
пре 14 година
Shane Mc Cormack
b3ab44ea51
Fix some OutputQueue method names.
пре 15 година
Shane Mc Cormack
b2631eb9a9
QueueHandler now implements Comparator<QueueItem>
пре 15 година
Shane Mc Cormack
ae86827c73
Add SocketState.OPENING as an intermediary state between the socket being created, and the OutputStream being passed to the OutputQueue
Remove the ability to change OutputQueue due to confusion, just allow changing the OutputHandler.
пре 15 година
Shane Mc Cormack
9ccb19a44a
Fix Order of QueuePriorities
OutputHandlers are now incharge of creating QueueItems and comparing them.
Parser now allows for replacing the OutputQueue entirely
Default OutputQueue allows replacing of the OutputHandler (by giving it a new QueueFactory that outputs the alternative QueueHandler)
Sending PING is now High Priority
QueueItems now sort by a unique itemNumber not time, as priority queue doesn't guarentee order for itesm of teh same priority created at the same time
Add a rate-limited OutputQueue
пре 15 година