aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-07-25 21:05:42 -0400
committerZoffix Znet <cpan@zoffix.com>2016-07-25 21:05:42 -0400
commitea2c4707a526cc9746ed929e7a38d932721db624 (patch)
treef6177b614ca6750fae0831d2ceb8c9085ef7c01f /lib
parentcc5b3c020f67a3cdf2da3d524c37eec743f1eba5 (diff)
Make filters sorta work
Diffstat (limited to 'lib')
-rw-r--r--lib/IRC/Client.pm65
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 } }