diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-08-02 09:42:36 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-08-02 09:42:36 -0400 |
commit | 5d193e0c18f747f2f4f71d068f1baa31f94fe3aa (patch) | |
tree | 08ff65e4c414c23d00229a9bbfd0a9a76e927b6d /lib/IRC/Client.pm6 | |
parent | aa191b42b215dfdc1aad072f5e8046a83997c763 (diff) |
Use .join to join channels on start up instead of raw IRC command
Diffstat (limited to 'lib/IRC/Client.pm6')
-rw-r--r-- | lib/IRC/Client.pm6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index 1b616ce..f2f73a7 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -221,7 +221,7 @@ method !handle-event ($e) { given $e.command { when '001' { $s.current-nick = $e.args[0]; - self!ssay: "JOIN $_", :server($s) for |$s.channels; + self.join: $s.channels, :server($s); } when 'PING' { return $e.reply; } when '433'|'432' { self!change-nick: $s; } |