X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=plomlombot.py;h=7f3d4e5d2984bf89054be0f47c4787777a07e94f;hb=c48adc4bf2c4eb6e3370b53212bcc7f43385944a;hp=96b399b2eadc404c65e57f27ef97d6b344204ebf;hpb=a541bf77d3fc8f0f0a5c68640ae3d4a7af1306a0;p=plomlombot-irc.git diff --git a/plomlombot.py b/plomlombot.py index 96b399b..7f3d4e5 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -234,7 +234,7 @@ def handle_command(command, argument, notice, target, session): notice("there's no quote of that index") return i = i - 1 - else: + elif len(tokens) > 1: to_skip = 0 if tokens[0] == "search": query = str.join(" ", tokens[1:]) @@ -253,7 +253,7 @@ def handle_command(command, argument, notice, target, session): notice("skipped all quotes matching query") else: notice("found %s matches, showing max. 3, skipping %s" - %s (len(results), to_skip)) + % (len(results), to_skip)) for i in range(len(results)): if i >= to_skip and i < to_skip + 3: result = results[i]