mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed mutes being checked regardless of module mode (refs #61)
This commit is contained in:
parent
30750d7062
commit
6a3459d988
1 changed files with 9 additions and 7 deletions
|
@ -64,6 +64,7 @@ end
|
|||
events.handle("onClientConnectAttempt", admin.onClientConnectAttempt)
|
||||
|
||||
function admin.onClientConnect(clientId, firstTime, isBot)
|
||||
if settings.get("g_standalone") ~= 0 and settings.get("db_type") ~= "none" then
|
||||
local guid = et.Info_ValueForKey(et.trap_GetUserinfo(clientId), "cl_guid")
|
||||
local player = db.getPlayer(guid)
|
||||
|
||||
|
@ -76,6 +77,7 @@ function admin.onClientConnect(clientId, firstTime, isBot)
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
events.handle("onClientConnect", admin.onClientConnect)
|
||||
|
||||
function admin.onClientDisconnect(clientId)
|
||||
|
|
Loading…
Reference in a new issue