From 0bbb3c0fe6521f11f4a6d1338b48581fc4334c6a Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 31 Jul 2016 17:13:17 -0400 Subject: Fix issue with channels argument typecheck --- lib/IRC/Client.pm6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index 3f056ff..4ec67a5 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -44,7 +44,7 @@ submethod BUILD ( Str:D :$username = 'Perl6IRC', Str:D :$userhost = 'localhost', Str:D :$userreal = 'Perl6 IRC Client', - Str:D :$channels = ['#perl6'], + :$channels = ('#perl6',), ) { @!filters = @$filters; @!plugins = @$plugins; @@ -59,7 +59,7 @@ submethod BUILD ( my $s = IRC::Client::Server.new( :socket(Nil), :$label, - :channels[ |($conf // %all-conf) ], + :channels( @($conf // %all-conf) ), :nick[ |($conf // %all-conf) ], |%( -- cgit v1.1