From: Christian Heller Date: Thu, 7 Mar 2019 11:27:14 +0000 (+0100) Subject: Fix clause error. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/conditions?a=commitdiff_plain;h=41e7b73c51b47de7e39ac60e204b5bd62b7f9b58;p=plomlombot-irc.git Fix clause error. --- diff --git a/plomlombot.py b/plomlombot.py index d81ead3..3b48068 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -216,7 +216,7 @@ 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())))): help()