From 798476c8508298cf099598fb3466a2d1405282e0 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 15 Jul 2015 19:08:36 -0700 Subject: [PATCH] pr/insp: don't crash when a server sends TOPIC --- protocols/inspircd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 11bd14c..5880e36 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -641,9 +641,8 @@ def handle_topic(irc, numeric, command, args): channel = args[0].lower() topic = args[1] ts = int(time.time()) - setter = irc.users[numeric].nick irc.channels[channel].topic = topic - return {'channel': channel, 'setter': setter, 'ts': ts, 'topic': topic} + return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic} def handle_invite(irc, numeric, command, args): # <- :70MAAAAAC INVITE 0ALAAAAAA #blah 0