Files
fulpstation/code/__HELPERS/admin.dm
John Willard d5a8187c58 January tgu (#1094)
* tgu

* btfo

* Barsigns

* tgui fixes

* Map stuff

* pubby morgue

* .

* ...

* fixes varedited slime extract

* Merge remote-tracking branch 'upstream/master' into january-tgu
2024-02-01 09:15:55 -08:00

11 lines
517 B
Plaintext

/// Returns if the given client is an admin, REGARDLESS of if they're deadminned or not.
/proc/is_admin(client/client)
return !isnull(GLOB.admin_datums[client.ckey]) || !isnull(GLOB.deadmins[client.ckey])
/// Sends a message in the event that someone attempts to elevate their permissions through invoking a certain proc.
/proc/alert_to_permissions_elevation_attempt(mob/user)
var/message = " has tried to elevate permissions!"
message_admins(key_name_admin(user) + message)
log_admin(key_name(user) + message)