diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IRC/Client.pm6 | 3 |
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, |