]> git.donarmstrong.com Git - infobot.git/commitdiff
literal _default factoid - to get default entries
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 14 Jul 2004 19:43:19 +0000 (19:43 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 14 Jul 2004 19:43:19 +0000 (19:43 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1005 c11ca15a-4712-0410-83d8-924469b57eb5

files/blootbot.help
src/Factoids/Reply.pl

index 59f77524514ff6f61e8500176efe45f250bed0fd..9184ba36a06e9bae1af81c4ea12bb1475dfadf49 100644 (file)
@@ -235,8 +235,8 @@ listvalues: D: Search the factoid database by value (description)
 listvalues: U: ## <regex>
 listvalues: E: ## blootbot
 
-literal: used to get a raw factoid contents
-literal: U: ## <factoid>
+literal: used to get a raw factoid contents. Use _default to ignore factoidSearch path.
+literal: U: ## [_default|prefix] <factoid>
 literal: E: ## blootbot
 
 lobotomy: I can be given a lobotomy ([o] is required) if people start to abuse me.  To bring me back to life, give me an unlobotomy
index 4457ae118d78e135927fe171bcaa7a0b24ede267..efd83e7db6f31417e41f281d180892e322389b19 100644 (file)
@@ -35,6 +35,11 @@ sub getReply {
        @searches = ('_default');
     }
 
+    if ($literal and $message =~ /^_default\s+/) {
+       @searches = ('_default');
+       $message =~ s/^_default\s+//;
+    }
+
     # check for factoids with each prefix
     foreach $search (@searches) {
        if ($search eq '_default') {