aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
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);