# ancient Perl may not like these, but modern systems should have this
use open ':utf8';
use open ':std';
+use Encode qw( decode FB_QUIET );
BEGIN {
if ( @ARGV and -f $ARGV[0] ) {
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";
}
sub clearIRCVars {
- undef %channels;
+ # FIXME: only remove channels for current bot!
+ #undef %channels;
undef %floodjoin;
$cache{joinTime} = time();