From: dms Date: Tue, 30 Jan 2001 12:46:30 +0000 (+0000) Subject: - pSReply hack for &help(). X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=34adbb9b3f38d8834ed95c840f75c5f3e84ca9a2;p=infobot.git - pSReply hack for &help(). git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@273 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Misc.pl b/src/Misc.pl index ddda582..fe89197 100644 --- a/src/Misc.pl +++ b/src/Misc.pl @@ -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;