diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-18 18:18:05 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-18 18:18:05 +0200 |
commit | bded1f0382aeb691aa33ca312eea7f068dbcde99 (patch) | |
tree | 107484bbeb3bed6fbbffbb1c7dda56fc49a03f28 | |
parent | 257acdbfb3a4b0de7e3280e9f04d173e3016efbe (diff) |
rfc2812: be compatible with ruby < 1.8.7
String#each_char is only available in ruby 1.8.7, so use each_byte
followed by .chr
-rw-r--r-- | lib/rbot/rfc2812.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index 819ea291..f4487bdb 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1462,8 +1462,8 @@ module Irc else debug @server.supports[:chanmodes] setting = :set - arg.each_char do |c| - m = c.intern + arg.each_byte do |c| + m = c.chr.intern case m when :+ setting = :set |