Chris Smith
5cc0af4324
Use EventBus interface.
This is just an IntelliJ refactor, using EventBus in place of
DMDircMBassador whenever possible.
преди 7 години
Chris Smith
015d7aa8ac
Fix a few places where Query is temporarily needed.
преди 7 години
Chris Smith
03e9dd99fa
Use proper import ordering.
преди 8 години
Chris Smith
c01e26f5b9
Tidy up nick change handling.
It doesn't make sense to have a public method in Connection to
muddle around with how queries are tracked, nor for queries to
tell servers when they change (creating a dependency loop).
Instead, have the ServerEventHandler tell Server.
преди 8 години
Chris Smith
d15111ddd3
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
deb3b52ce4
Update date handling after parser changes.
The parser now uses the new API too, so we don't need to
do horrible things to convert.
преди 8 години
Chris Smith
513120b5be
Convert 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
96933fd89a
Tear Server and FrameContainer apart.
преди 8 години
Chris Smith
b5e200216d
Disable numeric formatting, remove dead code.
With numeric formatting gone, all output is either added direct
to a window (which will be changed soon) or done through
displayable events. Message sinks are now completely unused,
as they don't affect displayable events.
Issue #426
преди 8 години
Chris Smith
4b61733f0c
Move some more formats over to events.
This allows us to remove a fair chunk of the notification
handling functionality in FrameContainer.
Issue 426
преди 8 години
Chris Smith
1576c2c798
Tidy up some unused/uncommonly used methods.
I think these will eventually go away entirely, once everything
is event-bus'd, but I'm not entirely sure how that works any
more :(
преди 8 години
Chris Smith
f0019ffb26
Fix source of notice events.
We were raising notices as all coming from the local user, not
the person that sent the notice. This is... unideal.
преди 9 години
Chris Smith
2c6a9413e3
Slf4j a few more bits.
преди 9 години
Chris Smith
9176802331
Remove checkParser checks.
преди 9 години
Greg Holmes
a8242ee8c4
Use new whois event from parser.
преди 9 години
Greg Holmes
bc7a436581
Use new parser errors
преди 9 години
Chris Smith
ea13622549
Make a couple more events use new formatter.
Stop ChannelListModesRetrieved being displayable - not sure
why it ever was, we don't have a formatter for it.
преди 9 години
Greg Holmes
7455fe09da
Fix client after parser changes. Eventbouseseses.
преди 9 години
Greg Holmes
fa3dabee4f
Switch to Guava String padding in ServerNumeric
преди 9 години
Greg Holmes
a865e687bc
Switch QuerySelfExternal{Action,Message} to events.
преди 9 години
Chris Smith
70a3692bed
Make more server events use the new formatter.
преди 9 години
Chris Smith
d12b554b19
Make some server events use the new formatter.
преди 9 години
Greg Holmes
58ba212b0a
Fix line wrapping.
преди 9 години
Greg Holmes
9d53d5ec41
Add invite to ServerInviteReceivedEvent.
преди 9 години
Chris Smith
4349f58de7
Move invite handling into a separate class.
преди 9 години
Chris Smith
020a9eed0f
Use new InviteManager iface.
Delete the duplicated methods from Connection.
преди 9 години
Chris Smith
3993ee8156
Fix away state dodgyness.
Since changing to events we need to fire when changing from
unknown->away. Before, this was handled by the Server being
told about the new message (and then firing listeners).
Fixes #391 .
преди 9 години
Chris Smith
f9eb1c1275
Make a separate GroupChatManager.
For now this is just a straight(ish) copy of the way Server worked.
Need to make it use events in the future which should simplify it
quite a bit.
преди 9 години
Chris Smith
615f1d6622
Make CTCPs use the new formatter.
преди 9 години
Chris Smith
42fe0db71f
Fix naming of events.
We no longer need to be consistent with the odd casing/naming
of actions.
преди 9 години
Greg Holmes
a69affc703
Pass Users into doNotification everywhere.
преди 9 години
Greg Holmes
48124d1965
Remove some uses of parser local user.
преди 9 години
Shane Mc Cormack
9f3fcd1b59
2015!
преди 9 години
Greg Holmes
a855f03a91
Fix some optionals from the merge.
преди 9 години
Greg Holmes
348033fc13
Stop get(Local)User returning Optional.
преди 9 години
Chris Smith
6586b8ad11
Make Query use Users better.
Also remove some more parseHostname calls.
преди 9 години
Greg Holmes
82ce43c8a6
Remove some more ClientInfo usages.
преди 9 години
Chris Smith
7661d5e45c
Use User in Invite.
преди 9 години
Chris Smith
a28204440c
Push some event handling into ServerEventHandler.
преди 9 години
Greg Holmes
802c905565
Fix unit test and add methods.
преди 9 години
Greg Holmes
59e3352531
Make events use User.
преди 9 години
Greg Holmes
9af0c8c996
Switch events to User.
преди 9 години
Greg Holmes
1961e6f908
Camel case ServerInviteReceivedEvent.java
преди 9 години
Greg Holmes
5dde881c86
Tidy up away states in Connection.
преди 9 години
Chris Smith
6ecb8e2e9a
Make getParser() optional.
Returning null is bad.
преди 9 години
Greg Holmes
4e5663a58c
Add EventBus logging to EventHandler.
Change-Id: Ied14c2fb45e4fd4f761d3cc4f3f000e48f5f6fcb
Reviewed-on: http://gerrit.dmdirc.com/3905
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 9 години
Chris Smith
353c485c62
EventUtil tidying.
Move to util package. Add constants for standard priorities.
Change-Id: Id469276751d8a31f19690469540d2c5d07cbe3bc
Reviewed-on: http://gerrit.dmdirc.com/3827
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 9 години
Greg Holmes
746bb6081d
Generify MBassador.
Change-Id: Id3cfa404a56528542120f79c969d992a5c183aba
Reviewed-on: http://gerrit.dmdirc.com/3771
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 9 години
Greg Holmes
b12a0cb412
MBassador.
Change-Id: I2baa7e986ded54930093768238ed24cab8cf4bf7
Depends-On: I2cf35d5859c85c3609002f126241536fda5d588e
Reviewed-on: http://gerrit.dmdirc.com/3769
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
преди 10 години
Chris Smith
b1f373c5be
Fix various inspection errors.
Change-Id: Iaa5067d7b9276cc58b40f1338d5be2f25f44ddc3
Reviewed-on: http://gerrit.dmdirc.com/3693
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 10 години