Class: Irc::InviteMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::InviteMessage
- Defined in:
- lib/rbot/message.rb
Overview
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
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel user was invited to.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary collapse
-
#initialize(bot, server, source, target, channel, message = "") ⇒ InviteMessage
constructor
A new instance of InviteMessage.
- #inspect ⇒ Object
Methods inherited from BasicUserMessage
#address?, #botuser, #identified?, #parse_channel_list, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour
Constructor Details
#initialize(bot, server, source, target, channel, message = "") ⇒ InviteMessage
Returns a new instance of InviteMessage.
554 555 556 557 |
# File 'lib/rbot/message.rb', line 554 def initialize(bot, server, source, target, channel, ="") super(bot, server, source, target, ) @channel = channel end |
Instance Attribute Details
#channel ⇒ Object (readonly)
channel user was invited to
547 548 549 |
# File 'lib/rbot/message.rb', line 547 def channel @channel end |
Instance Method Details
#inspect ⇒ Object
549 550 551 552 |
# File 'lib/rbot/message.rb', line 549 def inspect fields = ' channel=' << channel.to_s super(fields) end |