summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-23 19:49:19 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-23 19:49:19 +0100
commit7e48a16c4b56c08222a502ee4c8383e3f7340d96 (patch)
treee387ecaca8b0d498f0a4591dc6268c2499ed5fe3
parent8918163609e55f6837722ff5c06b54fd0e316c9d (diff)
downloadpoezio-7e48a16c4b56c08222a502ee4c8383e3f7340d96.tar.gz
poezio-7e48a16c4b56c08222a502ee4c8383e3f7340d96.tar.bz2
poezio-7e48a16c4b56c08222a502ee4c8383e3f7340d96.tar.xz
poezio-7e48a16c4b56c08222a502ee4c8383e3f7340d96.zip
First argument of /quote can complete a nickname, to filter time results.
-rw-r--r--plugins/quote.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/quote.py b/plugins/quote.py
index a0a4a19a..96b61976 100644
--- a/plugins/quote.py
+++ b/plugins/quote.py
@@ -59,6 +59,12 @@ class Plugin(BasePlugin):
n = len(args)
if text.endswith(' '):
n += 1
+ if n == 2:
+ try:
+ if args[1][0] not in ('1', '2', '3', '4', '5', '6', '7', '8', '9', '0'):
+ return False
+ except:
+ pass
nick = ''
if n == 3:
nick = args[1]