From 36683fc70ead31bb00a066dc65f643941ce1837a Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 16 Apr 2016 17:02:02 -0700 Subject: [PATCH] ts6: keep state properly when handling JOIN --- protocols/ts6.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/ts6.py b/protocols/ts6.py index fb2734f..390180d 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -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':