aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZoffix Znet <zoffixznet@users.noreply.github.com>2018-08-02 13:28:42 -0400
committerGitHub <noreply@github.com>2018-08-02 13:28:42 -0400
commit723424b2cea164bf7d93f492afe39f409af916e0 (patch)
treef28b64a41986e767239e4d927b3667faed25e980 /lib
parent50a1adc8ef3f0f4cb9ddf0f9c9bce95b0eaf064a (diff)
Update Client.pm6
Diffstat (limited to 'lib')
-rw-r--r--lib/IRC/Client.pm63
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index 40353b3..c94fbff 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -25,7 +25,8 @@ has Channel $!socket-pipe = Channel.new;
my &colored = (try require Terminal::ANSIColor) === Nil
&& sub (Str $s, $) { $s } ||
::('Terminal::ANSIColor::EXPORT::DEFAULT::&colored');
-$! = Nil; # don't serialize any exceptions from the above
+BEGIN $! = Nil;
+ $! = Nil; # don't serialize any exceptions from the above
submethod BUILD (
Int:D :$!debug = 0,