mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
nefarious: keep state properly when handling JOIN
This commit is contained in:
parent
20087c8872
commit
d635967d3b
@ -680,6 +680,9 @@ class P10Protocol(Protocol):
|
|||||||
if ts: # Only update TS if one was sent.
|
if ts: # Only update TS if one was sent.
|
||||||
self.updateTS(channel, ts)
|
self.updateTS(channel, ts)
|
||||||
|
|
||||||
|
self.irc.users[source].channels.add(channel)
|
||||||
|
self.irc.channels[channel].users.add(source)
|
||||||
|
|
||||||
return {'channel': channel, 'users': [source], 'modes':
|
return {'channel': channel, 'users': [source], 'modes':
|
||||||
self.irc.channels[channel].modes, 'ts': ts or int(time.time())}
|
self.irc.channels[channel].modes, 'ts': ts or int(time.time())}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user