Class: Irc::ModeChangeMessage

Inherits:
BasicUserMessage show all
Defined in:
lib/rbot/message.rb

Overview

class to manage mode changes

Instance Attribute Summary collapse

Attributes inherited from BasicUserMessage

#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time

Instance Method Summary collapse

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, message = "") ⇒ ModeChangeMessage

Returns a new instance of ModeChangeMessage.



588
589
590
591
592
# File 'lib/rbot/message.rb', line 588

def initialize(bot, server, source, target, message="")
  super(bot, server, source, target, message)
  @address = (source == @bot.myself)
  @modes = []
end

Instance Attribute Details

#modesObject

Returns the value of attribute modes.



587
588
589
# File 'lib/rbot/message.rb', line 587

def modes
  @modes
end

Instance Method Details

#inspectObject



594
595
596
597
# File 'lib/rbot/message.rb', line 594

def inspect
  fields = ' modes=' << modes.inspect
  super(fields)
end