From 41e7b73c51b47de7e39ac60e204b5bd62b7f9b58 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 7 Mar 2019 12:27:14 +0100 Subject: [PATCH] Fix clause error. --- plomlombot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.30.2