summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]