Class: Irc::NoSuchTargetMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::NoSuchTargetMessage
- Defined in:
- lib/rbot/message.rb
Overview
class to handle ERR_NOSUCHNICK and ERR_NOSUCHCHANNEL
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
the channel or nick that was not found.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #time
Instance Method Summary collapse
-
#initialize(bot, server, source, target, message = '') ⇒ NoSuchTargetMessage
constructor
A new instance of NoSuchTargetMessage.
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, ='') super(bot, server, source, target, ) @target = target end |
Instance Attribute Details
#target ⇒ Object (readonly)
the channel or nick that was not found
704 705 706 |
# File 'lib/rbot/message.rb', line 704 def target @target end |