From 723424b2cea164bf7d93f492afe39f409af916e0 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Thu, 2 Aug 2018 13:28:42 -0400 Subject: Update Client.pm6 --- lib/IRC/Client.pm6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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, -- cgit v1.1