diff options
author | David Phillips <david@sighup.nz> | 2019-06-23 14:27:10 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-06-23 14:27:10 +1200 |
commit | cc32474c98aa46b69856e276a46f325e29588f93 (patch) | |
tree | fb942ee32c768a532b5dd60f45a147a1a8ee9a55 /idalius.pl | |
parent | 6f76af376a0a3838447190fd1eeb723c15d0bb99 (diff) | |
download | idalius-cc32474c98aa46b69856e276a46f325e29588f93.tar.xz |
Log private messages, too
Diffstat (limited to 'idalius.pl')
-rwxr-xr-x | idalius.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -525,14 +525,14 @@ sub irc_ping { sub irc_msg { my ($who, $to, $what, $ided) = @_[ARG0 .. ARG3]; my $nick = (split /!/, $who)[0]; - - # FIXME trigger plugins with on_msg or something. Currently no privmsg - # are logged, but Log.pm can do this for us. + my @empty = (); my $stripped_what = strip_color(strip_formatting($what)); my $output = run_command($stripped_what, $who, $nick, $ided); $irc->yield(privmsg => $nick => $output) if $output; + trigger_modules("privmsg", $who, undef, \@empty, ($who, $to, $what, $stripped_what)); + return; } |