From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 7 Mar 2019 11:28:42 +0000 (+0100)
Subject: Fix clause error.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/test?a=commitdiff_plain;h=e86511d9bf5c47d33e1ca05902611e9fab293c16;p=plomlombot-irc.git

Fix clause error.
---

diff --git a/plomlombot.py b/plomlombot.py
index 3b48068..8e2657c 100755
--- a/plomlombot.py
+++ b/plomlombot.py
@@ -216,9 +216,9 @@ def handle_command(command, argument, notice, target, session):
             tokens = argument.split(" ")
         if (len(tokens) == 1 and not tokens[0].isdigit()) or \
            (len(tokens) > 1 and
-            (tokens[0] not in {"search", "offset-search"}) or
+            (tokens[0] not in {"search", "offset-search"} or
             (tokens[0] == "offset-search" and
-             ((not len(tokens) > 2) or (not tokens[1].isdigit())))):
+             ((not len(tokens) > 2) or (not tokens[1].isdigit()))))):
             help()
             return
         if not os.access(session.quotesfile, os.F_OK):