aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Log.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin/Log.pm')
-rw-r--r--Plugin/Log.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Plugin/Log.pm b/Plugin/Log.pm
index a5dee69..a993d3f 100644
--- a/Plugin/Log.pm
+++ b/Plugin/Log.pm
@@ -17,6 +17,7 @@ my %t = (
host => color("magenta"),
channel => color("blue"),
message => color("reset"),
+ private => color("magenta"),
misc => color("bright_black"),
reset => color("reset")
);
@@ -92,6 +93,12 @@ sub on_message {
return;
}
+sub on_privmsg {
+ my ($self, $logger, $who, $to, $raw_what, $what, $irc) = @_;
+ $logger->("$t{bracket}\[$t{channel}private$t{bracket}\] $t{nick}$who$t{bracket}: $t{private}$what$t{reset}");
+ return;
+}
+
sub on_action {
my ($self, $logger, $who, $where, $raw_what, $what, $irc) = @_;
$logger->("$t{bracket}\[$t{channel}$where->[0]$t{bracket}\] $t{message}* $t{nick}$who $t{message}$raw_what$t{reset}");