From ebd2ce93936d9f96a4366cdc284607e58a507e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 3 Jan 2018 00:53:42 +0100 Subject: [PATCH] pngbot.py:IrcMiRCARTBot.dispatch353(): skip empty nick specs. --- pngbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pngbot.py b/pngbot.py index 627e928..fdfa397 100755 --- a/pngbot.py +++ b/pngbot.py @@ -118,7 +118,8 @@ class IrcMiRCARTBot(IrcBot): def dispatch353(self, message): if message[4].lower() == self.clientChannel.lower(): for channelNickSpec in message[5].split(" "): - if channelNickSpec[0] == "@" \ + if len(channelNickSpec) \ + and channelNickSpec[0] == "@" \ and len(channelNickSpec[1:]): self.clientChannelOps.append(channelNickSpec[1:].lower()) print("Authorising {} on {}".format(channelNickSpec[1:].lower(), message[4].lower()))