From: Christian Heller Date: Thu, 7 Mar 2019 11:24:59 +0000 (+0100) Subject: Fix clause error. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/te"st.html?a=commitdiff_plain;h=5377a72129557c7588b2a7e7e3e3890965f39813;p=plomlombot-irc.git Fix clause error. --- 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())))):