X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=plomlombot.py;h=4c44cf4a525d2c7955af0f38cd08aa795b0c729c;hb=dde11f1e930fc0649464a5e184461eb7b6505532;hp=35d3c2fbded5a454f974df98ac24dcec362a8ed0;hpb=406dc83c2b15e8ca0a58b244dc7eaeee42d2bbb4;p=plomlombot-irc.git diff --git a/plomlombot.py b/plomlombot.py index 35d3c2f..4c44cf4 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -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)