From aecc35d581fdfdbaeda00dbb47d68e75c0a1aa40 Mon Sep 17 00:00:00 2001 From: dms Date: Mon, 25 Sep 2000 12:08:16 +0000 Subject: [PATCH] fixed up performReply to be more intelligent when doing random stuff. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@143 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/IRC/Irc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blootbot/src/IRC/Irc.pl b/blootbot/src/IRC/Irc.pl index d2bc6fa..eeef5cb 100644 --- a/blootbot/src/IRC/Irc.pl +++ b/blootbot/src/IRC/Irc.pl @@ -257,7 +257,7 @@ sub performReply { &checkMsgType($reply); if ($msgType eq 'public') { - if (rand() < 0.5) { + if (rand() < 0.5 or $reply =~ /[\.\?]$/) { $reply = "$orig{who}: ".$reply; } else { $reply = "$reply, ".$orig{who}; -- 2.39.5