+lart
+limitcheck
+log
+ maxListReplyCount 15
+ maxListReplyLength 400
+md5
+nickometer
+page
# "+" before bot commands overrides this option temporarily.
###set minLengthBeforePrivate 192
-# [int] maximum length of reply for Extras function before popping list to
-# reduce number of elements.
-set maxListReplyLength 400
-
-# [int] maximum number of elements in list allowed for Extras function
-# before popping elements to reduce total count.
-set maxListReplyCount 15
-
# [0/1] allow people outside any channels the bot is on to use the bot
# for factoids and commands.
set disallowOutsiders 1
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
sub CmdListAuth {
my ($query) = @_;
- my $maxshow = $::param{'maxListReplyCount'} || 10;
+ my $maxshow = &::getChanConfDefault('maxListReplyCount', 15);
my @list = &searchTable("factoids","factoid_key", "created_by", "^$query!");
@list=grep(!/\#DEL\#$/,@list) if (scalar(@list) > $maxshow);
my ($type, $str) = @_;
my $start_time = &::timeget();
my @list;
- my $maxshow = $::param{'maxListReplyCount'} || 10;
+ my $maxshow = &::getChanConfDefault('maxListReplyCount', 15);
$type =~ s/s$//; # nice work-around.