From: Christian Heller Date: Sun, 5 Jun 2016 16:45:01 +0000 (+0200) Subject: Fix previous fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/todos?a=commitdiff_plain;h=dde11f1e930fc0649464a5e184461eb7b6505532;p=plomlombot-irc.git Fix previous fix. --- diff --git a/plomlombot.py b/plomlombot.py index ac78be9..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] 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)