diff options
| author | David Phillips <david@sighup.nz> | 2019-06-23 14:49:45 +1200 | 
|---|---|---|
| committer | David Phillips <david@sighup.nz> | 2019-06-23 14:49:45 +1200 | 
| commit | ed3d57c9747010ce8c2174ff2463cb50a13f247b (patch) | |
| tree | ce62cf2e572f07b8623bf7108f6cf920fe883689 | |
| parent | 932c71ff21720227faf0d489555d1e242199eecf (diff) | |
| download | idalius-ed3d57c9747010ce8c2174ff2463cb50a13f247b.tar.xz | |
Log notices
| -rw-r--r-- | Plugin/Log.pm | 6 | ||||
| -rwxr-xr-x | idalius.pl | 10 | 
2 files changed, 15 insertions, 1 deletions
| diff --git a/Plugin/Log.pm b/Plugin/Log.pm index dc2c6d3..dd092f5 100644 --- a/Plugin/Log.pm +++ b/Plugin/Log.pm @@ -134,6 +134,12 @@ sub on_invite {  	return;  } +sub on_notice { +	my ($self, $logger, $who, $where, $message, $irc) = @_; +	$logger->("$t{bracket}\[$t{channel}$where$t{bracket}\]$t{info} --- Notice: $t{nick}$who$t{info}: $t{message}$message$t{reset}"); +	return; +} +  sub on_topic {  	my ($self, $logger, $who, $where, $topic, $irc) = @_;  	if ($topic) { @@ -70,6 +70,7 @@ POE::Session->create(  			irc_kick  			irc_ctcp_action  			irc_public +			irc_notice  			irc_topic  			irc_ping  			irc_msg @@ -500,12 +501,19 @@ sub irc_invite {  # irc_disconnected  # irc_error  # irc_mode -# irc_notice  # irc_quit  # irc_socketerr  # irc_whois  # irc_whowas +sub irc_notice { +	my ($who, $where, $message) = @_[ARG0 .. ARG2]; +	my @empty = (); + +	trigger_modules("notice", $who, $where, \@empty, ($who, $where->[0], $message)); +	return; +} +  sub irc_topic {  	my ($who, $where, $topic) = @_[ARG0 .. ARG2];  	my @empty = (); | 
