]> git.donarmstrong.com Git - infobot.git/commitdiff
- pSReply hack for &help().
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 30 Jan 2001 12:46:30 +0000 (12:46 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 30 Jan 2001 12:46:30 +0000 (12:46 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@273 c11ca15a-4712-0410-83d8-924469b57eb5

src/Misc.pl

index ddda582e314fbb4a58ad42362fababcc99ab6e27..fe89197c18cb6a6e48cf614ffff09869f0eadc25 100644 (file)
@@ -12,6 +12,9 @@ sub help {
     my $file  = $bot_misc_dir."/blootbot.help";
     my %help  = ();
 
+    # crude hack for pSReply() to work as expected.
+    $msgType = "private" if ($msgType eq "public");
+
     if (!open(FILE, $file)) {
        &ERROR("FAILED loadHelp ($file): $!");
        return;