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 96b399b2eadc404c65e57f27ef97d6b344204ebf..c835d56b80581a38a97968ec9806cc6edde7ad89 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
                 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:])
             to_skip = 0
             if tokens[0] == "search":
                 query = str.join(" ", tokens[1:])