Class: Irc::NamesMessage

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

Overview

class to manage NAME replies

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 = "") ⇒ NamesMessage

Returns a new instance of NamesMessage.



618
619
620
621
# File 'lib/rbot/message.rb', line 618

def initialize(bot, server, source, target, message="")
  super(bot, server, source, target, message)
  @users = []
end

Instance Attribute Details

#usersObject

Returns the value of attribute users.



617
618
619
# File 'lib/rbot/message.rb', line 617

def users
  @users
end

Instance Method Details

#inspectObject



623
624
625
626
# File 'lib/rbot/message.rb', line 623

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