diff options
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 12f08789..3d20b71d 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -586,9 +586,11 @@ class Bot @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]}_" |