From 7fa7d0a4e3011caa6ad824c59cde43d4fe7c485b Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 10 Sep 2018 20:05:21 +1200 Subject: Rename handlers to on_* --- Plugin/Titillate.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Plugin/Titillate.pm') diff --git a/Plugin/Titillate.pm b/Plugin/Titillate.pm index fe31ba3..79f1a4a 100644 --- a/Plugin/Titillate.pm +++ b/Plugin/Titillate.pm @@ -13,7 +13,7 @@ sub configure { return $self; } -sub message { +sub on_message { my ($self, $logger, $me, $who, $where, $raw_what, $what, $irc) = @_; my $gathered = ""; my @expressions = (keys %{$config{triggers}}); @@ -33,7 +33,7 @@ sub message { return $gathered; } -sub action { - message(@_); +sub on_action { + on_message(@_); } 1; -- cgit v1.1