-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Turns the "Admin Permission Elevation Notification" into a m…
…acro [MDB IGNORE](#1008) * Turns the "Admin Permission Elevation Notification" into a macro (#80149) --------- Co-authored-by: SkyratBot <[email protected]> Co-authored-by: san7890 <[email protected]>
- Loading branch information
1 parent
2a6214a
commit 84b7df1
Showing
4 changed files
with
17 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/// 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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters