From b8dc28cfc86b7d2c6a536457f9a69aae2cc2734f 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/blootbot@143 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/IRC/Irc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRC/Irc.pl b/src/IRC/Irc.pl index d2bc6fa..eeef5cb 100644 --- a/src/IRC/Irc.pl +++ b/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.2