summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-01 00:17:02 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-01 00:17:02 +0200
commit73e8b7259363653a7de8978a75e889a622e33460 (patch)
tree4ad21f8ffab915bae0f6ed4404ad53ca346ed052
parentb17f43dd5458d2c03bd83ac1a4788a0d4e69cfb6 (diff)
rfc2812.rb: handle mode changes like -o+b
-rw-r--r--lib/rbot/rfc2812.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb
index ab9d2856..3159759b 100644
--- a/lib/rbot/rfc2812.rb
+++ b/lib/rbot/rfc2812.rb
@@ -1451,6 +1451,13 @@ module Irc
setting = setting == "+" ? :set : :reset
arg[1..-1].each_byte { |b|
m = b.chr.intern
+ if m == :+
+ setting = :set
+ next
+ elsif m == :-
+ setting = :reset
+ next
+ end
data[:modes] << [setting, m]
case m
when *@server.supports[:chanmodes][:typea]