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:
41e7b73
)
Fix clause error.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:28:42 +0000
(12:28 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:28:42 +0000
(12:28 +0100)
plomlombot.py
patch
|
blob
|
history
diff --git
a/plomlombot.py
b/plomlombot.py
index 3b480682fc42062d6698f9fbdf9643bd54d55258..8e2657c1a55de4a9f6ef9c481e8ecf703acac12a 100755
(executable)
--- a/
plomlombot.py
+++ b/
plomlombot.py
@@
-216,9
+216,9
@@
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())))):
+ ((not len(tokens) > 2) or (not tokens[1].isdigit()))))
)
:
help()
return
if not os.access(session.quotesfile, os.F_OK):