]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Misc.pl
maxListReply* now by channel
[infobot.git] / src / Misc.pl
index bef0f917634d5ad1ed340c07f01522524b6e4f5a..6cb2e7b1fdbf36fcb8b9a7231f800c3802940a08 100644 (file)
@@ -117,8 +117,8 @@ sub timedelta {
 sub formListReply {
     my($rand, $prefix, @list) = @_;
     my $total  = scalar @list;
-    my $maxshow = $param{'maxListReplyCount'}  || 10;
-    my $maxlen = $param{'maxListReplyLength'} || 400;
+    my $maxshow = &getChanConfDefault('maxListReplyCount', 15);
+    my $maxlen = &getChanConfDefault('maxListReplyLength', 400);
     my $reply;
 
     # remove irc overhead