First argument of /quote can complete a nickname, to filter time results.

This commit is contained in:
Florent Le Coz 2011-11-23 19:49:19 +01:00
parent 8918163609
commit 7e48a16c4b

View file

@ -59,6 +59,12 @@ class Plugin(BasePlugin):
n = len(args) n = len(args)
if text.endswith(' '): if text.endswith(' '):
n += 1 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 = '' nick = ''
if n == 3: if n == 3:
nick = args[1] nick = args[1]