aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-07-31 17:13:17 -0400
committerZoffix Znet <cpan@zoffix.com>2016-07-31 17:13:17 -0400
commit0bbb3c0fe6521f11f4a6d1338b48581fc4334c6a (patch)
tree3d0d8775724cef91984d47b8b6816087c32f6da4 /lib
parent6edfc2405f31181c133579857b1498ff613ad479 (diff)
Fix issue with channels argument typecheck3.003006
Diffstat (limited to 'lib')
-rw-r--r--lib/IRC/Client.pm64
1 files changed, 2 insertions, 2 deletions
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<channels> // %all-conf<channels>) ],
+ :channels( @($conf<channels> // %all-conf<channels>) ),
:nick[ |($conf<nick> // %all-conf<nick>) ],
|%(
<host password port username userhost userreal>