home
·
contact
·
privacy
projects
/
plomlombot-irc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix clause error.
[plomlombot-irc.git]
/
plomlombot.py
diff --git
a/plomlombot.py
b/plomlombot.py
index 7e0196eaa04971aa2eee9d669405a804723e5ce0..3b480682fc42062d6698f9fbdf9643bd54d55258 100755
(executable)
--- a/
plomlombot.py
+++ b/
plomlombot.py
@@
-215,12
+215,12
@@
def handle_command(command, argument, notice, target, session):
else:
tokens = argument.split(" ")
if (len(tokens) == 1 and not tokens[0].isdigit()) or \
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
+ (
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())))):
help()
(tokens[0] == "offset-search" and
((not len(tokens) > 2) or (not tokens[1].isdigit())))):
help()
- return
+
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")
return