3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

nefarious: keep state properly when handling JOIN

This commit is contained in:
James Lu 2016-04-16 17:00:50 -07:00
parent 20087c8872
commit d635967d3b

View File

@ -680,6 +680,9 @@ class P10Protocol(Protocol):
if ts: # Only update TS if one was sent.
self.updateTS(channel, ts)
self.irc.users[source].channels.add(channel)
self.irc.channels[channel].users.add(source)
return {'channel': channel, 'users': [source], 'modes':
self.irc.channels[channel].modes, 'ts': ts or int(time.time())}