@plugins.delegate "notice", message
}
@client[:motd] = proc { |data|
+ m = MotdMessage.new(self, server, data[:source], data[:target], data[:motd])
data[:motd].each_line { |line|
irclog "MOTD: #{line}", "server"
}
+ @plugins.delegate "motd", m
}
@client[:nicktaken] = proc { |data|
new = "#{data[:nick]}_"
class WelcomeMessage < BasicUserMessage
end
+ # class for handling MOTD from the server. Yes, MotdMessage
+ # is somewhat redundant, but it fits with the naming scheme
+ class MotdMessage < BasicUserMessage
+ end
+
# class for handling IRC user messages. Includes some utilities for handling
# the message, for example in plugins.
# The +message+ member will have any bot addressing "^bot: " removed
Called when the welcome message is received on
joining a server succesfully.
+ motd(MotdMessage)::
+ Called when the Message Of The Day is fully
+ recevied from the server.
+
connect:: Called when a server is joined successfully, but
before autojoin channels are joined (no params)