Chris Smith
deaf4b232f
Tidy how CommandParsers are created.
Instead of passing them in to the FrameContainer ctor, create
them afterwards.
This means the reference in FrameContainer can't be final but
removes the horrible setOwner() kludge that was previously in
CommandParser, and cuts down the deps needed to pass in to the
FrameContainer ctor.
vor 9 Jahren
Greg Holmes
168b137e68
Use the parser's new whois command.
vor 9 Jahren
Chris Smith
ea9a81563c
Fix a bunch more FrameContainer references.
vor 9 Jahren
Chris Smith
d12b554b19
Make some server events use the new formatter.
vor 9 Jahren
Chris Smith
3fa826e95a
Remove channel who functionality.
This will go in a plugin instead.
vor 9 Jahren
Greg Holmes
69380fecd6
Add a getNickname to Connection.
This should probably be moved to the LocalClient interface when
it exists.
vor 9 Jahren
Greg Holmes
7e3efcde59
Add a set nickname to Connection.
vor 9 Jahren
Greg Holmes
61a6bd4707
Tidy up method call.
vor 9 Jahren
Greg Holmes
5bafe9a8fa
Add a sendmessage to Connection
vor 9 Jahren
Chris Smith
b28b6e5f9b
Remove urlBuilder params.
From everywhere.
vor 9 Jahren
Chris Smith
4349f58de7
Move invite handling into a separate class.
vor 9 Jahren
Chris Smith
360d48307f
Add an interface for an InviteManager.
vor 9 Jahren
Chris Smith
2c289544e7
Remove Server.parseHostMask
vor 9 Jahren
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.
vor 9 Jahren
Chris Smith
7d5e1d2908
Copy GroupChat methods into a GroupChatManager.
Will remove them from Connection shortly. Then the functionality
can be pulled out of Server into a sane, separate class.
vor 9 Jahren
Chris Smith
ca785da4d8
Fix not being able to join channels...
vor 9 Jahren
Chris Smith
eb67b89a04
Stop BackBuffer being so lazy.
We now need it to exist independently of anything requesting it,
otherwise we miss lines being added.
vor 9 Jahren
Chris Smith
a63f70b05c
Make highlight colours configurable.
vor 9 Jahren
Greg Holmes
a69affc703
Pass Users into doNotification everywhere.
vor 9 Jahren
Greg Holmes
48124d1965
Remove some uses of parser local user.
vor 9 Jahren
Greg Holmes
3d3a49d9b8
Remove uses of parser objects in processnotificationargs.
vor 9 Jahren
Chris Smith
ab15bbb55b
Push some logic into Channel/Query factories.
Make these add the new window to the WindowManager, and post the
relevant event.
vor 9 Jahren
Chris Smith
e5a55f58ad
Decouple Server from ServerManager.
SM now listens to frame closing events, so Server doesn't need
to hold on to a reference and inform it that it's closing.
vor 9 Jahren
Shane Mc Cormack
9f3fcd1b59
2015!
vor 9 Jahren
Greg Holmes
0af10fe01e
Add managers to cache User + GroupChatUser
vor 9 Jahren
Greg Holmes
d77396e15a
Move from GroupChat to Connection.
vor 9 Jahren
Chris Smith
9d9857367e
Use GroupChat in Connection.getChannels().
Fix the channel message sink actually doing common channels...
I guess we're not really using that one.
vor 9 Jahren
Chris Smith
657817fd9b
Use GroupChat in Connection.getChannel().
vor 9 Jahren
Greg Holmes
df7046f37c
Handle GroupChatUser + User in processNotificationArg
vor 9 Jahren
Greg Holmes
e52f8b7ea0
Make Client store ClientInfo.
vor 9 Jahren
Chris Smith
75acc2bb2b
Small changes to GroupChat/Connection interfaces.
vor 9 Jahren
Chris Smith
04c3303281
Remove Raw from core.
vor 9 Jahren
Greg Holmes
3bd77172ec
Remove InviteListener.
vor 9 Jahren
Chris Smith
da1ebe1f85
Remove hasChannel.
Pointless now getChannel is optional.
vor 9 Jahren
Chris Smith
239974f942
Add utility method for holding parser readlock.
Cleans up a bit of repetition.
vor 9 Jahren
Greg Holmes
60c60a35b4
Add ServerInviteExpiredEvent.
vor 9 Jahren
Chris Smith
deae9bd285
Make getChannel optional.
vor 9 Jahren
Chris Smith
34a0bedc75
Remove getChannelNames.
Turns out there's no real use for it.
vor 9 Jahren
Chris Smith
167f858e91
Add getChannels and use it everywhere.
vor 9 Jahren
Chris Smith
b0901fa0ea
Rename getChannels to getChannelNames.
I want a method to return the actual Channels... :)
vor 9 Jahren
Greg Holmes
a855f03a91
Fix some optionals from the merge.
vor 9 Jahren
Greg Holmes
348033fc13
Stop get(Local)User returning Optional.
vor 9 Jahren
Chris Smith
6586b8ad11
Make Query use Users better.
Also remove some more parseHostname calls.
vor 9 Jahren
Chris Smith
45b2a4723e
Remove parseHostmask from Connection.
vor 9 Jahren
Greg Holmes
82ce43c8a6
Remove some more ClientInfo usages.
vor 9 Jahren
Chris Smith
a28204440c
Push some event handling into ServerEventHandler.
vor 9 Jahren
Chris Smith
9dc5a8a2bf
Initial work on highlight manager.
For now this just highlights the current nickname, but it can cope
with a list of other patterns once we decide how to store and model
them.
Also for now, sets the BG colour to red. Need to make that
configurable.
Issue #36
vor 9 Jahren
Greg Holmes
d9ff0d9a80
Tidy getUser methods in Server.
vor 9 Jahren
Greg Holmes
802c905565
Fix unit test and add methods.
vor 9 Jahren
Greg Holmes
9af0c8c996
Switch events to User.
vor 9 Jahren