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 (from parent 1:
50a05c8
)
Fix indentation error.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:22:46 +0000
(12:22 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 7 Mar 2019 11:22:46 +0000
(12:22 +0100)
plomlombot.py
patch
|
blob
|
history
diff --git
a/plomlombot.py
b/plomlombot.py
index f46a0b1db619e1086188512d951838015c5eda47..7e0196eaa04971aa2eee9d669405a804723e5ce0 100755
(executable)
--- a/
plomlombot.py
+++ b/
plomlombot.py
@@
-214,12
+214,12
@@
def handle_command(command, argument, notice, target, session):
tokens = []
else:
tokens = argument.split(" ")
tokens = []
else:
tokens = argument.split(" ")
- if (len(tokens) == 1 and not tokens[0].isdigit()) or \
- (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())))):
- help()
+
if (len(tokens) == 1 and not tokens[0].isdigit()) or \
+
(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())))):
+
help()
return
if not os.access(session.quotesfile, os.F_OK):
notice("no quotes available")
return
if not os.access(session.quotesfile, os.F_OK):
notice("no quotes available")