aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Client.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IRC/Client.pm6')
-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>