home · contact · privacy
Fix previous fix.
[plomlombot-irc.git] / plomlombot.py
index 35d3c2fbded5a454f974df98ac24dcec362a8ed0..4c44cf4a525d2c7955af0f38cd08aa795b0c729c 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(msg) > 1:
                 tokens = msg[1:].split()
                 argument = str.join(" ", tokens[1:])
                 handle_command(tokens[0], argument, notice, target, self)