Skip to content

Commit 2b607d9

Browse files
committed
admin2: Fix Anonymous Admin not working
1 parent c1272aa commit 2b607d9

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)