Class: Irc::ModeChangeMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::ModeChangeMessage
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/message.rb
Overview
class to manage mode changes
Instance Attribute Summary (collapse)
-
- (Object) modes
Returns the value of attribute modes.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary (collapse)
-
- (ModeChangeMessage) initialize(bot, server, source, target, message = "")
constructor
A new instance of ModeChangeMessage.
- - (Object) inspect
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
- (ModeChangeMessage) initialize(bot, server, source, target, message = "")
Returns a new instance of ModeChangeMessage
588 589 590 591 592 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 588 def initialize(bot, server, source, target, ="") super(bot, server, source, target, ) @address = (source == @bot.myself) @modes = [] end |
Instance Attribute Details
- (Object) modes
Returns the value of attribute modes
587 588 589 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 587 def modes @modes end |
Instance Method Details
- (Object) inspect
594 595 596 597 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 594 def inspect fields = ' modes=' << modes.inspect super(fields) end |