From a07cd87563d4ce92084884ba918b300ba97471b2 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 7 Mar 2019 12:15:40 +0100
Subject: [PATCH] Revert necessary clause erroneously removed.

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

diff --git a/plomlombot.py b/plomlombot.py
index 96b399b..c835d56 100755
--- a/plomlombot.py
+++ b/plomlombot.py
@@ -234,7 +234,7 @@ def handle_command(command, argument, notice, target, session):
                 notice("there's no quote of that index")
                 return
             i = i - 1
-        else:
+        elif len(tokens) > 1:
             to_skip = 0
             if tokens[0] == "search":
                 query = str.join(" ", tokens[1:])
-- 
2.30.2