鏡像自
https://github.com/ShadowNinja/LuaIRC.git
已同步 2025-11-05 23:05:29 +01:00
Save the server's MOTD
Conflicts: handlers.lua
此提交包含在:
11
handlers.lua
11
handlers.lua
@@ -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
|
||||
|
||||
新增問題並參考
封鎖使用者