mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Fixed localhost autoadmin for the re-admin verb (#18897)
* Fixed localhost autoadmin for the re-admin verb * Update code/modules/client/client_procs.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
@@ -254,9 +254,7 @@
|
||||
GLOB.directory[ckey] = src
|
||||
//Admin Authorisation
|
||||
// Automatically makes localhost connection an admin
|
||||
if(GLOB.configuration.admin.enable_localhost_autoadmin)
|
||||
if(is_connecting_from_localhost())
|
||||
new /datum/admins("!LOCALHOST!", R_HOST, ckey) // Makes localhost rank
|
||||
try_localhost_autoadmin()
|
||||
|
||||
holder = GLOB.admin_datums[ckey]
|
||||
if(holder)
|
||||
@@ -1184,6 +1182,9 @@
|
||||
else
|
||||
SSambience.ambience_listening_clients -= src
|
||||
|
||||
/client/proc/try_localhost_autoadmin()
|
||||
if(GLOB.configuration.admin.enable_localhost_autoadmin && is_connecting_from_localhost())
|
||||
return new /datum/admins("!LOCALHOST!", R_HOST, ckey)
|
||||
|
||||
// Verb scoped to the client level so its ALWAYS available
|
||||
/client/verb/open_tos()
|
||||
|
||||
Reference in New Issue
Block a user