home · contact · privacy
Fix clause error.
[plomlombot-irc.git] / plomlombot.py
index f0f387e45a3d9c583efc23d8509d454291ac46b8..8e2657c1a55de4a9f6ef9c481e8ecf703acac12a 100755 (executable)
@@ -215,10 +215,10 @@ def handle_command(command, argument, notice, target, session):
         else:
             tokens = argument.split(" ")
         if (len(tokens) == 1 and not tokens[0].isdigit()) or \
-           (tokens > 1 and
-            tokens[0] not in {"search", "offset-search"} or
+           (len(tokens) > 1 and
+            (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):