X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FModules%2FNews.pl;h=c82b5772730d04daad16574ef74dd6338ac74849;hb=a41f790cd30339179f7ae655a3009f22d61fc9e3;hp=1e84aac50f682908e1b1d53f75aed7ce2a52f7a8;hpb=81891a173512779f5bb68d13a48f51ec0cfbe55e;p=infobot.git diff --git a/src/Modules/News.pl b/src/Modules/News.pl index 1e84aac..c82b577 100644 --- a/src/Modules/News.pl +++ b/src/Modules/News.pl @@ -281,7 +281,7 @@ sub add { } $::news{$chan}{$str}{Time} = time(); - my $expire = &::getChanConfDefault("newsDefaultExpire",7); + my $expire = &::getChanConfDefault("newsDefaultExpire",7, $chan); $::news{$chan}{$str}{Expire} = time() + $expire*60*60*24; $::news{$chan}{$str}{Author} = $::who; # case!