home
·
contact
·
privacy
projects
/
plomlombot-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3d76d
)
Fix clause error.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:24:59 +0000
(12:24 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:24:59 +0000
(12:24 +0100)
plomlombot.py
patch
|
blob
|
history
diff --git
a/plomlombot.py
b/plomlombot.py
index f0f387e45a3d9c583efc23d8509d454291ac46b8..d81ead38938b6c2072d3b9b712a7512399ceb073 100755
(executable)
--- 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())))):