my ($self, $args) = @_;
my $on_setup = $args->{on_setup};
$self->irc_client->configure(
- on_message_text => $self->_replace_weakself('receive_irc_message')
+ on_message_text => $self->_replace_weakself('receive_irc_message'),
+ on_message_ctcp_ACTION => $self->_replace_weakself('receive_irc_message')
);
$self->irc_client->login(
nick => $self->irc_nick, host => $self->irc_server,
return if $hints->{prefix_is_me};
if (my $chain = $self->chains->{$hints->{target_name}}) {
$chain->handle_irc_message($message, $hints);
+ } elsif ($chain = $self->chains->{$hints->{targets}}) {
+ $chain->handle_irc_message($message, $hints);
}
}