sub receive_irc_message {
my ($self, $message, $hints) = @_;
return if $hints->{prefix_is_me};
- if (my $chain = $self->chains->{$hints->{target_name}}) {
+ if (my $chain = $self->chains->{$hints->{target_name}||''}) {
$chain->handle_irc_message($message, $hints);
- } elsif ($chain = $self->chains->{$hints->{targets}}) {
+ } elsif ($chain = $self->chains->{$hints->{targets}||''}) {
$chain->handle_irc_message($message, $hints);
}
}