summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/unicode.rb6
1 files changed, 3 insertions, 3 deletions
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']