From be234f1f4f5ad88ee25254f76f83c0416827f875 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Thu, 24 Jan 2013 21:28:03 +0100 Subject: [PATCH] [ForumUtils] Limit of 6 in Channel, Limit of 25 in Query --- forumutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forumutils.py b/forumutils.py index e947ab0..05246cd 100755 --- a/forumutils.py +++ b/forumutils.py @@ -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: