X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fcore%2Funicode.rb;h=92294bb3f541f5fb88a45761dc2c429f68e01c5d;hb=b24b57238b0270c8101914185eec13787fce3fa7;hp=0c1912265624623c87403f11070d8c19406fe8f2;hpb=b3300cabeda816b79a592c3e7704abbbd3b5505c;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/core/unicode.rb b/lib/rbot/core/unicode.rb index 0c191226..92294bb3 100644 --- a/lib/rbot/core/unicode.rb +++ b/lib/rbot/core/unicode.rb @@ -62,14 +62,14 @@ class UnicodePlugin < CoreBotModule def initialize(*a) super - @old_kcode = $KCODE + @@old_kcode = $KCODE self.class.reconfigure_filter(@bot) end def cleanup debug "cleaning up encodings" @bot.socket.filter = nil - $KCODE = @old_kcode + $KCODE = @@old_kcode super end @@ -78,7 +78,7 @@ class UnicodePlugin < CoreBotModule enable = bot.config['encoding.enable'] if not enable bot.socket.filter = nil - $KCODE = @old_kcode + $KCODE = @@old_kcode return end charsets = bot.config['encoding.charsets']