diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-27 21:50:50 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-27 21:50:50 +0100 |
commit | 4b3c33ad04cb47eeed3b360ac0743415de0d9ad9 (patch) | |
tree | 42327c6dadf876e1dd94fac62ff868eceadb99f9 /lib/rbot/message.rb | |
parent | 445b4b7f144edb862f7744eae4eeddb5f4b27038 (diff) |
* handle invites properly -- forgot more than half the files :/
Diffstat (limited to 'lib/rbot/message.rb')
-rw-r--r-- | lib/rbot/message.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index 35100802..aa825e13 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -419,6 +419,19 @@ module Irc end end + # class to manage IRC INVITEs + # +address?+ can be used as a shortcut to see if the bot was invited, + # which should be true except for server bugs + class InviteMessage < BasicUserMessage + # channel user was invited to + attr_reader :channel + + def initialize(bot, server, source, target, channel, message="") + super(bot, server, source, target, message) + @channel = channel + end + end + # class to pass IRC Nick changes in. @message contains the old nickame, # @sourcenick contains the new one. class NickMessage < BasicUserMessage |