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 35d3c2f..ac78be9 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)