mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
this should please "HeavySteam"
This commit is contained in:
parent
5f3636345a
commit
c51117cb35
@ -1,5 +1,19 @@
|
||||
local TAG = "EasyChatEngineChatHack"
|
||||
|
||||
local PLY_META = FindMetaTable("Player")
|
||||
local old_nick = PLY_META.Nick
|
||||
if debug.getinfo(old_nick).source == "=[C]" then
|
||||
function PLY_META:Nick()
|
||||
-- we do this because steam censors player's names if they have "steam" in there
|
||||
-- which results in valid names like "PipeSteam" not to work.
|
||||
local proper_nick = old_nick:gsub("%*%*%*%*%*", "steam")
|
||||
return proper_nick -- don't return varargs
|
||||
end
|
||||
|
||||
PLY_META.Name = PLY_META.Nick
|
||||
PLY_META.GetName = PLY_META.Nick
|
||||
end
|
||||
|
||||
-- if a server has slog or sourcenet, use them to route say commands to our networking
|
||||
-- https://github.com/Heyter/gbins/tree/master/slog/src
|
||||
-- https://github.com/danielga/gm_sourcenet
|
||||
|
Loading…
Reference in New Issue
Block a user