[ForumUtils] Limit of 6 in Channel, Limit of 25 in Query

master
Sfan5 2013-01-24 21:28:03 +01:00
parent 46d7aaa643
commit be234f1f4f
1 changed files with 1 additions and 1 deletions

View File

@ -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: