From a22d539075597a686f04a79d960c2047c83ab389 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Fri, 12 Jul 2019 21:14:58 +1200 Subject: Topic: Add topic reporting plugin --- Plugin/Log.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Plugin/Log.pm') 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}"); -- cgit v1.1