summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2009-11-27 13:35:36 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-12-21 11:05:30 +0100
commita1db6671fb3819b58bcc1f0494b86d3a32df747f (patch)
treee0dca8f4d670c744b210b62fc7c81c460b397ea2 /lib/rbot/ircbot.rb
parent9b28df160e736561547440f985c35056d044276e (diff)
ircbot/rfc2812/message: Add banlist message handling
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 1e1106de..3313fe86 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -757,6 +757,11 @@ class Bot
m.users = data[:users]
@plugins.delegate "names", m
}
+ @client[:banlist] = proc { |data|
+ m = BanlistMessage.new(self, server, server, data[:channel])
+ m.bans = data[:bans]
+ @plugins.delegate "banlist", m
+ }
@client[:nosuchtarget] = proc { |data|
m = NoSuchTargetMessage.new(self, server, server, data[:target], data[:message])
@plugins.delegate "nosuchtarget", m