]> jfr.im git - erebus.git/commitdiff
mode parsing bugfix
authorzonidjan <redacted>
Wed, 11 Oct 2017 01:59:41 +0000 (20:59 -0500)
committerzonidjan <redacted>
Wed, 11 Oct 2017 01:59:41 +0000 (20:59 -0500)
bot.py

diff --git a/bot.py b/bot.py
index 11b7ac50636ccfeab7cc88b1b39a37d4fd1de03c..fc9557e2ce507a5753c0b134d0a2d33a87a1193b 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -222,6 +222,8 @@ class Bot(object):
                self.parent.users[newnick.lower()].nickchange(newnick)
        def _gotmode(self, pieces):
                source = pieces[0].split('!')[0][1:]
+               chan = pieces[2]
+               if not chan.startswith("#"): return
                chan = self.parent.channel(pieces[2])
                mode = pieces[3]
                args = pieces[4:]