Class: Irc::WhoisMessage

Inherits:
BasicUserMessage show all
Defined in:
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

#initialize(bot, server, source, target, whois) ⇒ WhoisMessage

Returns a new instance of WhoisMessage.



603
604
605
606
607
# File '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

#whoisObject (readonly)

Returns the value of attribute whois.



602
603
604
# File 'lib/rbot/message.rb', line 602

def whois
  @whois
end

Instance Method Details

#inspectObject



609
610
611
612
# File 'lib/rbot/message.rb', line 609

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