From 7e48a16c4b56c08222a502ee4c8383e3f7340d96 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 23 Nov 2011 19:49:19 +0100 Subject: First argument of /quote can complete a nickname, to filter time results. --- plugins/quote.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins') 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] -- cgit v1.2.3