mirror of
https://github.com/ShadowNinja/LuaIRC.git
synced 2025-01-09 09:30:28 +01:00
Save the server's MOTD
This commit is contained in:
parent
b1cbbf1963
commit
58dfd5043a
11
handlers.lua
11
handlers.lua
@ -90,6 +90,17 @@ handlers["432"] = needNewNick
|
||||
-- ERR_NICKNAMEINUSE
|
||||
handlers["433"] = needNewNick
|
||||
|
||||
-- RPL_MOTDSTART
|
||||
handlers["375"] = function(o, prefix, info)
|
||||
o.motd = ""
|
||||
end
|
||||
|
||||
-- RPL_MOTD
|
||||
handlers["372"] = function(o, prefix, nick, line)
|
||||
-- MOTD lines have a "- " prefix, strip it.
|
||||
o.motd = o.motd..line:sub(3)..'\n'
|
||||
end
|
||||
|
||||
--NAMES list
|
||||
handlers["353"] = function(o, prefix, me, chanType, channel, names)
|
||||
if o.track_users then
|
||||
|
Loading…
Reference in New Issue
Block a user