[ForumUtils] Limit of 6 in Channel, Limit of 25 in Query
This commit is contained in:
parent
46d7aaa643
commit
be234f1f4f
@ -61,7 +61,7 @@ def search_forumuser(phenny, input):
|
||||
if not type(usrs) == type([]):
|
||||
return phenny.reply(usrs)
|
||||
else:
|
||||
if len(usrs) > 6:
|
||||
if (len(usrs) > 6 and input.sender.startswith('#')) or (len(usrs) > 25 and not input.sender.startswith('#')):
|
||||
return phenny.reply("Too many matches: %i" % len(usrs))
|
||||
else:
|
||||
for u in usrs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user