From dde11f1e930fc0649464a5e184461eb7b6505532 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 5 Jun 2016 18:45:01 +0200
Subject: [PATCH] Fix previous fix.

---
 plomlombot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.30.2