From: djmcgrath Date: Sun, 28 Oct 2007 19:24:50 +0000 (+0000) Subject: * Fix /me actions in console log X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=15cd8f33c9f82f2e86389a695f581f93e61aa8dd;p=infobot.git * Fix /me actions in console log git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1596 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl index 319d0c0..c3544f1 100644 --- a/src/IRC/IrcHooks.pl +++ b/src/IRC/IrcHooks.pl @@ -24,15 +24,13 @@ sub on_generic { sub on_action { $conn = shift(@_); my ($event) = @_; - my ($nick, @args) = ($event->nick, $event->args); + my ($nick, $args) = ($event->nick, $event->args); my $chan = ($event->to)[0]; - shift @args; - if ($chan eq $ident) { - &status("* [$nick] @args"); + &status("* [$nick] $args"); } else { - &status("* $nick/$chan @args"); + &status("* $nick/$chan $args"); } }