mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
clean that up a bit
This commit is contained in:
parent
2278cc69f1
commit
3f88eb3972
@ -182,24 +182,19 @@ local function check_nick_override_wrapper_status()
|
|||||||
timer.Simple(1, check_nick_override_wrapper_status)
|
timer.Simple(1, check_nick_override_wrapper_status)
|
||||||
end
|
end
|
||||||
|
|
||||||
PLY.Nick = make_nick_override_wrapper()
|
local new_wrapper = make_nick_override_wrapper()
|
||||||
PLY.Name = PLY.Nick
|
for _, fn_name in ipairs(clean_name_fns) do
|
||||||
PLY.GetName = PLY.Nick
|
PLY[fn_name] = new_wrapper
|
||||||
PLY.GetNick = PLY.Nick
|
end
|
||||||
|
|
||||||
|
for _, fn_name in ipairs(tagged_name_fns) do
|
||||||
|
PLY[fn_name] = rich_nick_wrapper
|
||||||
|
end
|
||||||
|
|
||||||
PLY.RealNick = PLY.EngineNick
|
PLY.RealNick = PLY.EngineNick
|
||||||
PLY.RealName = PLY.EngineNick
|
PLY.RealName = PLY.EngineNick
|
||||||
PLY.GetRealName = PLY.EngineNick
|
PLY.GetRealName = PLY.EngineNick
|
||||||
|
|
||||||
PLY.RichNick = rich_nick_wrapper
|
|
||||||
PLY.RichName = PLY.RichNick
|
|
||||||
PLY.GetRichNick = PLY.RichNick
|
|
||||||
PLY.GetRichName = PLY.RichNick
|
|
||||||
PLY.GetNameDecorated = PLY.RichNick
|
|
||||||
PLY.GetNickDecorated = PLY.RichNick
|
|
||||||
PLY.NickDecorated = PLY.RichNick
|
|
||||||
PLY.NameDecorated = PLY.RichNick
|
|
||||||
|
|
||||||
timer.Simple(1, check_nick_override_wrapper_status)
|
timer.Simple(1, check_nick_override_wrapper_status)
|
||||||
|
|
||||||
local load_modules, get_modules = include("easychat/autoloader.lua")
|
local load_modules, get_modules = include("easychat/autoloader.lua")
|
||||||
|
Loading…
Reference in New Issue
Block a user