diff options
author | David Phillips <david@sighup.nz> | 2018-09-10 20:05:21 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-10 20:05:21 +1200 |
commit | 7fa7d0a4e3011caa6ad824c59cde43d4fe7c485b (patch) | |
tree | 2752841a5dd8ca62abae84e6b830a77210fdf2f2 /idalius.pl | |
parent | 851fb8fb8feb881a63c40bce0d963ce425a95ef7 (diff) | |
download | idalius-7fa7d0a4e3011caa6ad824c59cde43d4fe7c485b.tar.xz |
Rename handlers to on_*
Diffstat (limited to 'idalius.pl')
-rwxr-xr-x | idalius.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |