home · contact · privacy
Fix crash on "!" message.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jun 2016 16:43:04 +0000 (18:43 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jun 2016 16:43:04 +0000 (18:43 +0200)
plomlombot.py

index 35d3c2fbded5a454f974df98ac24dcec362a8ed0..ac78be9fa88d967fd5e71b6cbd37bfa710c17787 100755 (executable)
@@ -488,7 +488,7 @@ class Session:
                         notice("maximum number of urls to parse per message "
                                "reached")
                         break
-            if "!" == msg[0]:
+            if "!" == msg[0] and len(tokens) > 1:
                 tokens = msg[1:].split()
                 argument = str.join(" ", tokens[1:])
                 handle_command(tokens[0], argument, notice, target, self)