aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-10 20:05:21 +1200
committerDavid Phillips <david@sighup.nz>2018-09-10 20:05:21 +1200
commit7fa7d0a4e3011caa6ad824c59cde43d4fe7c485b (patch)
tree2752841a5dd8ca62abae84e6b830a77210fdf2f2 /idalius.pl
parent851fb8fb8feb881a63c40bce0d963ce425a95ef7 (diff)
downloadidalius-7fa7d0a4e3011caa6ad824c59cde43d4fe7c485b.tar.xz
Rename handlers to on_*
Diffstat (limited to 'idalius.pl')
-rwxr-xr-xidalius.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/idalius.pl b/idalius.pl
index 9982930..d65a4e1 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -214,6 +214,8 @@ sub handle_common {
strike_add($nick, $channel) if $output;
}
+ # handler names are defined as being prefixed with on_
+ $message_type = "on_$message_type";
for my $module (@{$config{plugins}}) {
if (module_is_enabled($module) && $module->can($message_type)) {
$output = $module->$message_type(\&log_info, $irc->nick_name, $who, $where, $what, $stripped_what, $irc);