Class: Irc::WhoisMessage

Inherits:
BasicUserMessage show all
Defined in:
/home/apoc/projects/ruby/rbot/lib/rbot/message.rb

Overview

class to manage WHOIS 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

- (WhoisMessage) initialize(bot, server, source, target, whois)

Returns a new instance of WhoisMessage



603
604
605
606
607
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 603

def initialize(bot, server, source, target, whois)
  super(bot, server, source, target, "")
  @address = (target == @bot.myself)
  @whois = whois
end

Instance Attribute Details

- (Object) whois (readonly)

Returns the value of attribute whois



602
603
604
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 602

def whois
  @whois
end

Instance Method Details

- (Object) inspect



609
610
611
612
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 609

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