From: timriker Date: Wed, 12 Nov 2003 18:15:22 +0000 (+0000) Subject: you already said what status have said X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=93bbe771d754419d860b385b7011189f9c448983;p=infobot.git you already said what status have said git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@882 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/IrcHelpers.pl b/src/IRC/IrcHelpers.pl index c472894..8055c4f 100644 --- a/src/IRC/IrcHelpers.pl +++ b/src/IRC/IrcHelpers.pl @@ -145,12 +145,10 @@ sub hookMsg { return if ($lobotomized); - if (scalar @who) { - &msg($who, "you already said what ". - join(' ', @who)." have said."); - } else { - &msg($who,"Someone already said that ". (time - $time) ." seconds ago" ); + if (!scalar @who) { + push(@who,"Someone"); } + &msg($who,join(' ', @who)." already said that ". (time - $time) ." seconds ago" ); ### TODO: delete old floodwarn{} keys. my $floodwarn = 0;