Chris Smith
958913fcf8
Rename QueueFactory to QueueHandlerFactory.
7 years ago
Chris Smith
1f0818efb2
Use proper dates in QueueItems, fix broken logic.
Use Java8 date types for parser queue items. Fix the time check in
QueueHandler to check if the item has been queued for longer than
10 seconds, rather than if the item was created within 10 seconds
of the epoch.
8 years ago
Shane Mc Cormack
92c73501f3
Don't add '0' to pendingJoins
8 years ago
Chris Smith
f0dc1ed505
Minor inconsequential parser tidying.
8 years ago
Shane Mc Cormack
108c5429d2
Add isNuemric for handler conditions.
8 years ago
Shane Mc Cormack
ef20a80eb7
Add numeric stuff to IRCDataInEvent
8 years ago
Shane Mc Cormack
03fce829e2
Don't re-expose this in this PR, will do it some other time when actually needed.
8 years ago
Shane Mc Cormack
769dce90be
Make inner class static.
8 years ago
Shane Mc Cormack
4e58a9c854
Send QUIT on disconnect. (Close #7)
8 years ago
Shane Mc Cormack
822bf59490
Add IRCDataInEvent that presents an IRCReader.ReadLine object rather than just the line of data.
This gives us access to MessageTags (#19 ) and pre-tokenised lines in DataIn rather than everything neededing to tokenise themselves.
There are probably a few other events we want to expose messagetags on that we still don't.
8 years ago
Shane Mc Cormack
6e105baeb0
No point using 2 separate queue's...
8 years ago
Shane Mc Cormack
d0e6b71044
Synchronously is the default
8 years ago
Shane Mc Cormack
4529e75970
Minor javadoc change.
8 years ago
Shane Mc Cormack
04c1d90ac4
Move pendingJoins and pendingJoinKeys into processJoin instead of IRCParser.
Issue #108
8 years ago
Shane Mc Cormack
b1af722472
IDEA ftl.
8 years ago
Shane Mc Cormack
d9cc3b6939
Fire an event when the channel password changes. (Issue #108)
8 years ago
Shane Mc Cormack
a2af0c5851
Try to keep track of channel keys (Close Issue #108)
- Parses outgoing JOINs to try and guess keys before we get the MODE reply.
- Parsing algorithm based on Quakenet/Hybrid handling of keys.
- Keys are swallowed from the key-list for EVERY channel that is
to join, even if it is not needed, so you would need to use
"JOIN #Foo,#Bar,#Baz Foo,,Baz" to join keyed channels #Foo and #Baz.
- Key changes by mode +k and -k will be tracked.
- Ignores attempts to set the key as "*" if we know a "better" key.
- Side effect: If the key is actually set to "*" we can only learn it if that
is what we join with, or it gets changed to that from no-key.
8 years ago
Shane Mc Cormack
74c77ef264
Some additional WHOIS bits that were missed.
8 years ago
Chris Smith
942782e679
Tidy up a few asserts.
8 years ago
Chris Smith
bf2a73712a
Fix units for ofEpochSecond call.
8 years ago
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 years ago
Chris Smith
a050ea93fe
Set ADDRESS and REAL_NAME property after whois.
Having two separate events means the ordering isn't guaranteed.
Handle everything for 311 numerics in one handler.
8 years ago
Shane Mc Cormack
4f8a72a145
Alternative method.
8 years ago
Shane Mc Cormack
a23c571fdb
Don't allow resetting state whilst socketClose events are still occuring.
8 years ago
Chris Smith
c0f6cf18e8
Always provide a 'kicker' client.
When we moved to events, we stopped passing null in place of clients.
Instead, fake clients should be used. Apparently ProcessKick wasn't
properly updated.
Fixes issue #100
8 years ago
Shane Mc Cormack
f0e64e8e98
Modes should default to "" not null
8 years ago
Chris Smith
58a69d94b4
Make method names in ProcessorsModule unique.
Issue DMDirc/DMDirc#601
9 years ago
Chris Smith
b1426239fe
Make the Simple*Handlers actually do stuff.
9 years ago
Chris Smith
ee14e37f3f
Don't double format debug info.
9 years ago
Greg Holmes
4fe86cade6
Narrow scopes for some variables.
9 years ago
Greg Holmes
3a507ab47b
Create TrustingTrustManager instead of AIC
9 years ago
Chris Smith
17d9a893cb
Ensure client modes are non-null.
Fixes #82 .
9 years ago
Chris Smith
1803e32b21
Use nifty separate handlers.
9 years ago
Chris Smith
560fcd9178
Add support for away messages in whois replies.
9 years ago
Chris Smith
435e79577a
Add a whois reponse handler.
Just does ircu stuff for now.
9 years ago
Chris Smith
528d7ddd31
Use fake clients in a couple of places.
9 years ago
Chris Smith
bde70f142c
Remove all stupid TestParser-based tests.
These need to be rewritten as proper unit tests.
9 years ago
Chris Smith
f6ff601095
Add missing files.
9 years ago
Chris Smith
0b786eef84
Start using dagger.
9 years ago
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 years ago
Chris Smith
861b7f4e33
Delete callback interfaces.
9 years ago
Greg Holmes
832e0d7e9d
Ignore tests, hopefully.
9 years ago
Greg Holmes
4afd386556
Remove install methods.
9 years ago
Chris Smith
4301740680
Publish events.
9 years ago
Chris Smith
2905b728ef
Remove unused logging thing.
9 years ago
Greg Holmes
e5f918c5b0
Add a sendWhois command to the parser.
9 years ago
Greg Holmes
6a5b7426bf
Fix unit tests.
9 years ago
Greg Holmes
d3c1f74028
Expose getChannelClients in ClientInfo
9 years ago
Greg Holmes
ae832d15d0
Add static methods to install
9 years ago
Greg Holmes
e69f72c4c8
Add standalone handlers for NickInUse and PingFailure.
9 years ago