diff options
Diffstat (limited to 'lib/IRC')
-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 } } |