From 15cd8f33c9f82f2e86389a695f581f93e61aa8dd Mon Sep 17 00:00:00 2001 From: djmcgrath Date: Sun, 28 Oct 2007 19:24:50 +0000 Subject: [PATCH] * Fix /me actions in console log git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1596 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/IRC/IrcHooks.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"); } } -- 2.39.5