// if client return player nickname, or if server return admin nickname
string GetCallerName(entity caller)
{
- if (caller) return caller.netname;
+ if (caller) return playername(caller, false);
else return admin_name(); // ((autocvar_sv_adminnick != "") ? autocvar_sv_adminnick : autocvar_hostname);
}
// If the vote_caller is still here, return their name, otherwise vote_caller_name
string OriginalCallerName()
{
- if (IS_REAL_CLIENT(vote_caller)) return vote_caller.netname;
+ if (IS_REAL_CLIENT(vote_caller)) return playername(vote_caller, false);
return vote_caller_name;
}