]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Core.pl
explicit $chan for getChanConfDefault
[infobot.git] / src / Factoids / Core.pl
index c3fb474c32c5bedb0c053af1060a342cbca7501d..979db4b035e25b366690ad0f4fe92c7f9f1750d9 100644 (file)
@@ -158,11 +158,9 @@ sub FactoidStuff {
        my $author      = &getFactInfo($faqtoid, "created_by");
        my $count       = &getFactInfo($faqtoid, "requested_count") || 0;
        # don't delete if requested $limit times
-       my $limit       = &getChanConfDefault(
-                               "factoidPreventForgetLimit", 100, $chan);
+       my $limit       = &getChanConfDefault('factoidPreventForgetLimit', 100, $chan);
        # don't delete if older than $limitage seconds (modified by requests below)
-       my $limitage    = &getChanConfDefault(
-                               "factoidPreventForgetLimitTime", 7 * 24 * 60 * 60, $chan);
+       my $limitage    = &getChanConfDefault('factoidPreventForgetLimitTime', 7 * 24 * 60 * 60, $chan);
        my $t           = &getFactInfo($faqtoid, "created_time") || 0;
        my $age         = time() - $t;