Class: Irc::NoSuchTargetMessage

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

Overview

class to handle ERR_NOSUCHNICK and ERR_NOSUCHCHANNEL

Instance Attribute Summary collapse

Attributes inherited from BasicUserMessage

#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #time

Instance Method Summary collapse

Methods inherited from BasicUserMessage

#address?, #botuser, #identified?, #inspect, #parse_channel_list, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour

Constructor Details

#initialize(bot, server, source, target, message = '') ⇒ NoSuchTargetMessage

Returns a new instance of NoSuchTargetMessage.



706
707
708
709
710
# File 'lib/rbot/message.rb', line 706

def initialize(bot, server, source, target, message='')
  super(bot, server, source, target, message)

  @target = target
end

Instance Attribute Details

#targetObject (readonly)

the channel or nick that was not found



704
705
706
# File 'lib/rbot/message.rb', line 704

def target
  @target
end