home · contact · privacy
Revert necessary clause erroneously removed.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:15:40 +0000 (12:15 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:15:40 +0000 (12:15 +0100)
plomlombot.py

index 96b399b..c835d56 100755 (executable)
@@ -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:])