diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-07-25 21:05:42 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-07-25 21:05:42 -0400 |
commit | ea2c4707a526cc9746ed929e7a38d932721db624 (patch) | |
tree | f6177b614ca6750fae0831d2ceb8c9085ef7c01f /lib | |
parent | cc5b3c020f67a3cdf2da3d524c37eec743f1eba5 (diff) |
Make filters sorta work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IRC/Client.pm6 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index e0cd731..5069d31 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -99,10 +99,11 @@ method send-cmd ($cmd, *@args is copy, :$server) { say "About to check filter stuff `{@!filters}`"; if $cmd eq 'NOTICE'|'PRIVMSG' and @!filters and my @f = @!filters.grep({ - .signature.ACCEPTS: \(@args[0], where => @args[1]) + .signature.ACCEPTS: \(@args[1]) + or .signature.ACCEPTS: \(@args[1], where => @args[0]) }) { - say "Starting filtering: `@args[]`"; + say "Starting filtering: `@f[]`"; start { CATCH { default { warn $_; warn .backtrace } } |