summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-12 23:43:37 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-12 23:43:37 +0200
commit407909dcd0f19e2d3240b84bbd75a8cf9967535b (patch)
treeba522e300a50794cf32a6cb49aae2aa8c08db7c9 /lib/rbot/ircbot.rb
parent2d0765c18a7304aa6e113275411f1cff957ed8d9 (diff)
+ WelcomeMessage class
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 9afdc46c..29c0a116 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -528,8 +528,11 @@ class Bot
@quiet = []
@client[:welcome] = proc {|data|
+ m = WelcomeMessage.new(self, server, data[:source], data[:target], data[:message])
+
irclog "joined server #{@client.server} as #{myself}", "server"
+ @plugins.delegate("welcome", m)
@plugins.delegate("connect")
@config['irc.join_channels'].each { |c|