summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2009-11-11 22:37:07 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-12-21 11:05:30 +0100
commit9b28df160e736561547440f985c35056d044276e (patch)
treefc7f664b9206dc309fad2e2a744c5c8aa2d5cb6f /lib/rbot/ircbot.rb
parent1a44fec776e7a299fe4f38298b9a47b443285b3a (diff)
ircbot: Delegate ERR_NOSUCHNICK and ERR_NOSUCHCHANNEL events to plugins
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 6f7bed7d..1e1106de 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -757,6 +757,10 @@ class Bot
m.users = data[:users]
@plugins.delegate "names", m
}
+ @client[:nosuchtarget] = proc { |data|
+ m = NoSuchTargetMessage.new(self, server, server, data[:target], data[:message])
+ @plugins.delegate "nosuchtarget", m
+ }
@client[:error] = proc { |data|
raise ServerError, data[:message]
}