First argument of /quote can complete a nickname, to filter time results.
This commit is contained in:
parent
8918163609
commit
7e48a16c4b
1 changed files with 6 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue