Class: Irc::NamesMessage

Inherits:
BasicUserMessage show all
Defined in:
/home/apoc/projects/ruby/rbot/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

- (NamesMessage) initialize(bot, server, source, target, message = "")

Returns a new instance of NamesMessage



633
634
635
636
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 633

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

Instance Attribute Details

- (Object) users

Returns the value of attribute users



632
633
634
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 632

def users
  @users
end

Instance Method Details

- (Object) inspect



638
639
640
641
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 638

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