Save the server's MOTD

Conflicts:
	handlers.lua
This commit is contained in:
ShadowNinja 2014-02-26 14:44:17 -05:00
parent b5646fd64a
commit ecc6558e3d
1 changed files with 11 additions and 0 deletions

View File

@ -102,6 +102,17 @@ handlers["005"] = function(o, user, nick, ...)
end
end
-- RPL_MOTDSTART
handlers["375"] = function(o, user, info)
o.motd = ""
end
-- RPL_MOTD
handlers["372"] = function(o, user, nick, line)
-- MOTD lines have a "- " prefix, strip it.
o.motd = o.motd..line:sub(3)..'\n'
end
--NAMES list
handlers["353"] = function(o, user, me, chanType, channel, names)
if o.track_users then