Skip to content

Commit b055960

Browse files
authored
admin2: Fix Anonymous Admin not working (#204)
Addendum to 1b99a05
2 parents c1272aa + 2b607d9 commit b055960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[admin]/admin2/server/admin_server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function aAction(type, action, admin, player, data, more)
103103
hex = ""
104104
end
105105
string = tostring(string)
106-
string = string.gsub(string, "$admin", getPlayerName(admin) .. hex)
106+
string = string.gsub(string, "$admin", isAnonAdmin(admin) and "Admin" or (getPlayerName(admin) .. hex))
107107
string = string.gsub(string, "$data2", more or "")
108108
if (player) then
109109
string = string.gsub(string, "$player", getPlayerName(player) .. hex)

0 commit comments

Comments
 (0)