mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-16 05:21:01 +01:00
ts6: keep state properly when handling JOIN
This commit is contained in:
parent
c2c8dda4ef
commit
36683fc70e
@ -481,6 +481,10 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
else:
|
else:
|
||||||
channel = utils.toLower(self.irc, args[1])
|
channel = utils.toLower(self.irc, args[1])
|
||||||
self.updateTS(channel, ts)
|
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,
|
# We send users and modes here because SJOIN and JOIN both use one hook,
|
||||||
# for simplicity's sake (with plugins).
|
# for simplicity's sake (with plugins).
|
||||||
return {'channel': channel, 'users': [numeric], 'modes':
|
return {'channel': channel, 'users': [numeric], 'modes':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user