diff options
author | dmitry kim <jason@nichego.net> | 2008-05-01 03:46:41 +0400 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-05-01 03:46:41 +0400 |
commit | b24b57238b0270c8101914185eec13787fce3fa7 (patch) | |
tree | bc8ee2e810986aface2e86b0cc145d679bf6258c /lib/rbot | |
parent | 722a87ebc272bcccc4cf9c954251467a0f46e2e0 (diff) |
* unicode.rb: @old_kcode --> @@old_kcode [we aren't always called as an instance]
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/unicode.rb | 6 |
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'] |