3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

ts6: keep state properly when handling JOIN

This commit is contained in:
James Lu 2016-04-16 17:02:02 -07:00
parent c2c8dda4ef
commit 36683fc70e

View File

@ -481,6 +481,10 @@ class TS6Protocol(TS6BaseProtocol):
else:
channel = utils.toLower(self.irc, args[1])
self.updateTS(channel, ts)
self.irc.users[numeric].channels.add(channel)
self.irc.channels[channel].users.add(numeric)
# We send users and modes here because SJOIN and JOIN both use one hook,
# for simplicity's sake (with plugins).
return {'channel': channel, 'users': [numeric], 'modes':