Skip to content

Commit

Permalink
initial fix for method dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed May 16, 2012
1 parent a31df19 commit af5af22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Net/IRC/Bot.pm
Expand Up @@ -127,7 +127,13 @@ class Net::IRC::Bot {
@.modules>>.*emoted($event) if uc $0 eq 'ACTION';
}
else {
@.modules>>.*said($event);
for @.modules -> $m {
say $event.WHAT;
try $m.said($event);
if $! && $!.message !~~ /'none of these signatures match'/ {
die $!;
}
}
}
}

Expand Down

0 comments on commit af5af22

Please sign in to comment.