summaryrefslogtreecommitdiff
path: root/lib/rbot/rfc2812.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-18 18:18:05 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-18 18:18:05 +0200
commitbded1f0382aeb691aa33ca312eea7f068dbcde99 (patch)
tree107484bbeb3bed6fbbffbb1c7dda56fc49a03f28 /lib/rbot/rfc2812.rb
parent257acdbfb3a4b0de7e3280e9f04d173e3016efbe (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
Diffstat (limited to 'lib/rbot/rfc2812.rb')
-rw-r--r--lib/rbot/rfc2812.rb4
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