From: Christian Heller Date: Sun, 5 Jun 2016 16:43:04 +0000 (+0200) Subject: Fix crash on "!" message. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_structured?a=commitdiff_plain;h=822065cbe31e5fb79c018c444b0009999b2b325c;p=plomlombot-irc.git Fix crash on "!" message. --- diff --git a/plomlombot.py b/plomlombot.py index 35d3c2f..ac78be9 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(tokens) > 1: tokens = msg[1:].split() argument = str.join(" ", tokens[1:]) handle_command(tokens[0], argument, notice, target, self)