Class: Irc::NoSuchTargetMessage

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

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

Returns a new instance of NoSuchTargetMessage



721
722
723
724
725
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 721

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

  @target = target
end

Instance Attribute Details

- (Object) target (readonly)

the channel or nick that was not found



719
720
721
# File '/home/apoc/projects/ruby/rbot/lib/rbot/message.rb', line 719

def target
  @target
end