summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-13 01:44:26 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-13 01:44:26 +0200
commit26856c6742be2b79524533e7fd2b9cb3a93faa82 (patch)
tree5a209f4094a928305f6f3cfa507660286d65d7a3 /lib/rbot/ircbot.rb
parent5509b8844473382646304fa699048de4551f5773 (diff)
+ NamesMessage class
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index a22d1772..18e9e57c 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -685,7 +685,9 @@ class Bot
@plugins.irc_delegate("topic", m)
}
@client[:names] = proc { |data|
- @plugins.delegate "names", data[:channel], data[:users]
+ m = NamesMessage.new(self, server, server, data[:channel])
+ m.users = data[:users]
+ @plugins.delegate "names", m
}
@client[:unknown] = proc { |data|
#debug "UNKNOWN: #{data[:serverstring]}"