]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/Irc.pl
don't clear channels, minor utf8 tweak
[infobot.git] / src / IRC / Irc.pl
index ccae33b17bd64d006dd3914ba964794f5bed87c5..7b962c8ad23e0b9e13c9c1ef6cb2cd54257087ea 100644 (file)
@@ -128,6 +128,7 @@ sub irc {
            if (defined $conns{$mynick}) {
                # explicit binmode for socket as "use open" does not seem to work here
                #binmode $conns{$mynick}->{_socket}, ":utf8";
+               # This will bomb on non-utf8 input
                #binmode $conns{$mynick}->{_socket}, ":encoding(UTF-8)";
                # TODO: need to input bytes, but output utf8
                binmode $conns{$mynick}->{_socket}, ":bytes";
@@ -887,7 +888,8 @@ sub clearChanVars {
 }
 
 sub clearIRCVars {
-    undef %channels;
+    # FIXME: only remove channels for current bot!
+    #undef %channels;
     undef %floodjoin;
 
     $cache{joinTime} = time();