From 73e8b7259363653a7de8978a75e889a622e33460 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 1 May 2008 00:17:02 +0200 Subject: rfc2812.rb: handle mode changes like -o+b --- lib/rbot/rfc2812.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/rbot') 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] -- cgit v1.2.3