diff options
Diffstat (limited to 'lib/rbot/message.rb')
-rw-r--r-- | lib/rbot/message.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb index 64c4b6bb..e0cb753c 100644 --- a/lib/rbot/message.rb +++ b/lib/rbot/message.rb @@ -661,6 +661,18 @@ module Irc class PartMessage < JoinMessage end + # class to handle ERR_NOSUCHNICK and ERR_NOSUCHCHANNEL + class NoSuchTargetMessage < BasicUserMessage + # the channel or nick that was not found + attr_reader :target + + def initialize(bot, server, source, target, message='') + super(bot, server, source, target, message) + + @target = target + end + end + class UnknownMessage < BasicUserMessage end end |