Browse files

initial fix for method dispatch

  • Loading branch information...
1 parent a31df19 commit af5af22ac095777bae411eb6e5dea5e29c550947 @masak committed May 16, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/Net/IRC/Bot.pm
View
8 lib/Net/IRC/Bot.pm
@@ -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 $!;
+ }
+ }
}
}

0 comments on commit af5af22

Please sign in to comment.