From e86511d9bf5c47d33e1ca05902611e9fab293c16 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 7 Mar 2019 12:28:42 +0100
Subject: [PATCH] Fix clause error.

---
 plomlombot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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