From 822065cbe31e5fb79c018c444b0009999b2b325c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 5 Jun 2016 18:43:04 +0200 Subject: [PATCH] Fix crash on "!" message. --- plomlombot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2