]> git.donarmstrong.com Git - infobot.git/commitdiff
cleaner
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 12 Aug 2004 17:12:52 +0000 (17:12 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 12 Aug 2004 17:12:52 +0000 (17:12 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1022 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Reply.pl

index 7dc720fc8f5f55b5401e4a20dd4cc2b22dd632e1..8235bb5898544fe47b89f3dc46f4f8316d73d5e8 100644 (file)
@@ -29,11 +29,7 @@ sub getReply {
     $message =~ tr/A-Z/a-z/;
     $message =~ s/^cmd:/CMD:/;
 
-    if (&IsChanConf("factoidSearch")) {
-       @searches = split(/\s+/, &getChanConf("factoidSearch"));
-    } else {
-       @searches = ('_default');
-    }
+    @searches = split(/\s+/, &getChanConfDefault('factoidSearch', '_default'));
 
     # requesting the _default one, ignore factoidSearch
     if ($message =~ /^_default\s+/) {