From 5377a72129557c7588b2a7e7e3e3890965f39813 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 7 Mar 2019 12:24:59 +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 f0f387e..d81ead3 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -215,7 +215,7 @@ 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 + (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())))): -- 2.30.2