diff options
Diffstat (limited to 'lib/rbot/message.rb')
-rw-r--r-- | lib/rbot/message.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index 616bef28..b3a8eb3b 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -462,6 +462,16 @@ module Irc end end + # class to manage mode changes + class ModeChangeMessage < BasicUserMessage + attr_accessor :modes + def initialize(bot, server, source, channel, message="") + super(bot, server, source, channel, message) + @address = (source == @bot.myself) + @modes = [] + end + end + class QuitMessage < BasicUserMessage def initialize(bot, server, source, target, message="") super(bot, server, source, target, message) |