- add help for 'search'
authorAndreas Scherbaum <[email protected]>
Fri, 25 May 2012 21:55:12 +0000 (23:55 +0200)
committerAndreas Scherbaum <[email protected]>
Fri, 25 May 2012 21:55:12 +0000 (23:55 +0200)
docbot.pl

index 6e6652eeedd1bf5fc00ce319b6eadcdad4305918..49bc83c5a3a16b45ca4555f3372d87e12c64e6e7 100755 (executable)
--- a/docbot.pl
+++ b/docbot.pl
@@ -2126,6 +2126,13 @@ sub handle_command_help {
     }
 
 
+    if ($string eq 'search') {
+        my $answer = "Start a search with two question marks, followed by the search term";
+        # translate message
+        $answer = translate_text_for_channel($replyto, 'help_general_line_2', $answer);
+        $irc->yield( privmsg => $replyto, $answer );
+    }
+
     return '';
 }