aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Log.pm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-07-12 21:14:58 +1200
committerDavid Phillips <david@sighup.nz>2019-07-12 23:19:11 +1200
commita22d539075597a686f04a79d960c2047c83ab389 (patch)
tree88bd681ad3200a20a1e173f8b39da27212b8e283 /Plugin/Log.pm
parentc757da74b4131562f23d7b5275aaf981891fe882 (diff)
downloadidalius-a22d539075597a686f04a79d960c2047c83ab389.tar.xz
Topic: Add topic reporting plugin
Diffstat (limited to 'Plugin/Log.pm')
-rw-r--r--Plugin/Log.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/Plugin/Log.pm b/Plugin/Log.pm
index dd092f5..542873c 100644
--- a/Plugin/Log.pm
+++ b/Plugin/Log.pm
@@ -156,6 +156,18 @@ sub on_ping {
return;
}
+sub on_331_rpl_notopic {
+ my ($self, $logger, $where, $irc) = @_;
+ $logger->("$t{bracket}\[$t{channel}$where$t{bracket}\]$t{info} --- topic is not set$t{reset}");
+ return;
+}
+
+sub on_332_rpl_topic {
+ my ($self, $logger, $where, $topic, $irc) = @_;
+ $logger->("$t{bracket}\[$t{channel}$where$t{bracket}\]$t{info} --- topic is $t{message}$topic$t{reset}");
+ return;
+}
+
sub on_372_motd_content {
my ($self, $logger, $server, $motd, $irc) = @_;
$logger->("$t{info}MOTD: $t{message}$motd$t{reset}");