home · contact · privacy
Fix previous fix.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jun 2016 16:45:01 +0000 (18:45 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jun 2016 16:45:01 +0000 (18:45 +0200)
plomlombot.py

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