Chris Smith
958913fcf8
Rename QueueFactory to QueueHandlerFactory.
il y a 8 ans
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.
il y a 8 ans
Shane Mc Cormack
92c73501f3
Don't add '0' to pendingJoins
il y a 8 ans
Chris Smith
f0dc1ed505
Minor inconsequential parser tidying.
il y a 8 ans
Shane Mc Cormack
108c5429d2
Add isNuemric for handler conditions.
il y a 8 ans
Shane Mc Cormack
ef20a80eb7
Add numeric stuff to IRCDataInEvent
il y a 8 ans
Shane Mc Cormack
03fce829e2
Don't re-expose this in this PR, will do it some other time when actually needed.
il y a 8 ans
Shane Mc Cormack
769dce90be
Make inner class static.
il y a 8 ans
Shane Mc Cormack
4e58a9c854
Send QUIT on disconnect. (Close #7)
il y a 8 ans
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.
il y a 8 ans
Shane Mc Cormack
6e105baeb0
No point using 2 separate queue's...
il y a 8 ans
Shane Mc Cormack
d0e6b71044
Synchronously is the default
il y a 8 ans
Shane Mc Cormack
4529e75970
Minor javadoc change.
il y a 8 ans
Shane Mc Cormack
04c1d90ac4
Move pendingJoins and pendingJoinKeys into processJoin instead of IRCParser.
Issue #108
il y a 8 ans
Shane Mc Cormack
b1af722472
IDEA ftl.
il y a 8 ans
Shane Mc Cormack
d9cc3b6939
Fire an event when the channel password changes. (Issue #108)
il y a 8 ans
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.
il y a 8 ans
Shane Mc Cormack
74c77ef264
Some additional WHOIS bits that were missed.
il y a 8 ans
Chris Smith
942782e679
Tidy up a few asserts.
il y a 8 ans
Chris Smith
bf2a73712a
Fix units for ofEpochSecond call.
il y a 8 ans
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.
il y a 8 ans
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.
il y a 8 ans
Shane Mc Cormack
4f8a72a145
Alternative method.
il y a 8 ans
Shane Mc Cormack
a23c571fdb
Don't allow resetting state whilst socketClose events are still occuring.
il y a 8 ans
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
il y a 8 ans
Shane Mc Cormack
f0e64e8e98
Modes should default to "" not null
il y a 8 ans
Chris Smith
58a69d94b4
Make method names in ProcessorsModule unique.
Issue DMDirc/DMDirc#601
il y a 9 ans
Chris Smith
b1426239fe
Make the Simple*Handlers actually do stuff.
il y a 9 ans
Chris Smith
ee14e37f3f
Don't double format debug info.
il y a 9 ans
Greg Holmes
4fe86cade6
Narrow scopes for some variables.
il y a 9 ans
Greg Holmes
3a507ab47b
Create TrustingTrustManager instead of AIC
il y a 9 ans
Chris Smith
17d9a893cb
Ensure client modes are non-null.
Fixes #82 .
il y a 9 ans
Chris Smith
1803e32b21
Use nifty separate handlers.
il y a 9 ans
Chris Smith
560fcd9178
Add support for away messages in whois replies.
il y a 9 ans
Chris Smith
435e79577a
Add a whois reponse handler.
Just does ircu stuff for now.
il y a 9 ans
Chris Smith
528d7ddd31
Use fake clients in a couple of places.
il y a 9 ans
Chris Smith
bde70f142c
Remove all stupid TestParser-based tests.
These need to be rewritten as proper unit tests.
il y a 9 ans
Chris Smith
f6ff601095
Add missing files.
il y a 9 ans
Chris Smith
0b786eef84
Start using dagger.
il y a 9 ans
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.
il y a 9 ans
Chris Smith
861b7f4e33
Delete callback interfaces.
il y a 9 ans
Greg Holmes
832e0d7e9d
Ignore tests, hopefully.
il y a 9 ans
Greg Holmes
4afd386556
Remove install methods.
il y a 9 ans
Chris Smith
4301740680
Publish events.
il y a 9 ans
Chris Smith
2905b728ef
Remove unused logging thing.
il y a 9 ans
Greg Holmes
e5f918c5b0
Add a sendWhois command to the parser.
il y a 9 ans
Greg Holmes
6a5b7426bf
Fix unit tests.
il y a 9 ans
Greg Holmes
d3c1f74028
Expose getChannelClients in ClientInfo
il y a 9 ans
Greg Holmes
ae832d15d0
Add static methods to install
il y a 9 ans
Greg Holmes
e69f72c4c8
Add standalone handlers for NickInUse and PingFailure.
il y a 9 ans