diff options
author | David Phillips <david@sighup.nz> | 2019-07-12 21:14:58 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-07-12 23:19:11 +1200 |
commit | a22d539075597a686f04a79d960c2047c83ab389 (patch) | |
tree | 88bd681ad3200a20a1e173f8b39da27212b8e283 /Plugin/Log.pm | |
parent | c757da74b4131562f23d7b5275aaf981891fe882 (diff) | |
download | idalius-a22d539075597a686f04a79d960c2047c83ab389.tar.xz |
Topic: Add topic reporting plugin
Diffstat (limited to 'Plugin/Log.pm')
-rw-r--r-- | Plugin/Log.pm | 12 |
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}"); |