From b24b57238b0270c8101914185eec13787fce3fa7 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Thu, 1 May 2008 03:46:41 +0400 Subject: * unicode.rb: @old_kcode --> @@old_kcode [we aren't always called as an instance] --- lib/rbot/core/unicode.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rbot') 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'] -- cgit v1.2.3