home · contact · privacy
Fix clause error.
[plomlombot-irc.git] / plomlombot.py
index f46a0b1db619e1086188512d951838015c5eda47..d81ead38938b6c2072d3b9b712a7512399ceb073 100755 (executable)
@@ -214,13 +214,13 @@ def handle_command(command, argument, notice, target, session):
             tokens = []
         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
-           (tokens[0] == "offset-search" and
-            ((not len(tokens) > 2) or (not tokens[1].isdigit())))):
-           help()
-           return
+        if (len(tokens) == 1 and not tokens[0].isdigit()) 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())))):
+            help()
+            return
         if not os.access(session.quotesfile, os.F_OK):
             notice("no quotes available")
             return