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, #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.



542
543
544
545
546
# File 'lib/rbot/message.rb', line 542

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.



541
542
543
# File 'lib/rbot/message.rb', line 541

def modes
  @modes
end

Instance Method Details

#inspectObject



548
549
550
551
# File 'lib/rbot/message.rb', line 548

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