/tg/ Station 13 - Modules - TypesVar Details - Proc Details

admins

Vars

admin_signatureRandomly generated signature used for security records authorization name.
blocked_by_2faWhether or not the user tried to connect, but was blocked by 2FA
bypass_2faWhether or not this user can bypass 2FA
cached_feedback_linkLink from the database pointing to the admin's feedback forum
tagged_datumsA lazylist of tagged datums, for quick reference with the View Tags verb

Procs

GamePanels
add_tagged_datumInserts the target_datum into /datum/admins/var/tagged_datums, for later reference.
can_edit_rights_flagsGet the permissions this admin is allowed to edit on other ranks
can_place_additional_admin_banChecks if the admin can place an additional admin ban.
check_2faReturns whether or not the given client has a verified 2FA connection. The output is in the form of a list with the first index being whether or not the check was successful, the 2nd is the ID of the associated database entry if its a false result and if one can be found.
feedback_linkReturns the feedback forum thread for the admin holder's owner, as according to DB.
forceEventOpens up the Force Event Panel
handle_tagged_delGet ahead of the curve with deleting
message_pdaOpens up the PDA Message Panel
modify_traitsAllow admin to add or remove traits of datum
notify_all_banned_playersNotifies all banned players about their ban and gives them a link to appeal from the config. If it was a server ban, it also kicks them.
poll_list_panelShows a list of all current and future polls and buttons to edit or delete them or create a new poll.
poll_management_panelShow the options for creating a poll or editing its parameters along with its linked options.
poll_option_panelShow the options for creating a poll option or editing its parameters.
poll_option_parse_hrefProcesses topic data from poll option panel.
poll_parse_hrefProcesses topic data from poll management panel.
rank_flagsGet the rank flags of the admin
rank_namesGet the rank name of the admin
rebanSometimes an admin did not intend to unban a player. This proc undoes an unbanning operation by setting the unbanned_ keys in the DB back to null.
remove_tagged_datumAttempts to remove the specified datum from /datum/admins/var/tagged_datums if it exists
verify_admin_from_local_cacheReturns true if the admin's cid/ip is verified in the local cache

Var Details

admin_signature

Randomly generated signature used for security records authorization name.

blocked_by_2fa

Whether or not the user tried to connect, but was blocked by 2FA

bypass_2fa

Whether or not this user can bypass 2FA

Link from the database pointing to the admin's feedback forum

tagged_datums

A lazylist of tagged datums, for quick reference with the View Tags verb

Proc Details

Game

Panels

add_tagged_datum

Inserts the target_datum into /datum/admins/var/tagged_datums, for later reference.

Arguments:

can_edit_rights_flags

Get the permissions this admin is allowed to edit on other ranks

can_place_additional_admin_ban

Checks if the admin can place an additional admin ban.

Returns FALSE if the query fails to execute. Returns FALSE and notifies the admin in chat if they are at their max number of admin bans already. Returns TRUE if an admin can place an additional admin ban.

Arguments:

check_2fa

Returns whether or not the given client has a verified 2FA connection. The output is in the form of a list with the first index being whether or not the check was successful, the 2nd is the ID of the associated database entry if its a false result and if one can be found.

Returns the feedback forum thread for the admin holder's owner, as according to DB.

forceEvent

Opens up the Force Event Panel

handle_tagged_del

Get ahead of the curve with deleting

message_pda

Opens up the PDA Message Panel

modify_traits

Allow admin to add or remove traits of datum

notify_all_banned_players

Notifies all banned players about their ban and gives them a link to appeal from the config. If it was a server ban, it also kicks them.

If the banned player's ckey has a linked client on the server, it notifies them of the ban details and kicks them if it was a server ban. If there is anyone else sharing the banned player's IP or CID, it notifies them of the ban details and kicks them if it was a server ban.

Builds the ban cache for every client impacted by the ban.

Arguments:

poll_list_panel

Shows a list of all current and future polls and buttons to edit or delete them or create a new poll.

poll_management_panel

Show the options for creating a poll or editing its parameters along with its linked options.

poll_option_panel

Show the options for creating a poll option or editing its parameters.

poll_option_parse_href

Processes topic data from poll option panel.

Reads through returned form data and assigns data to the option datum, creating a new one if required, before passing it to be saved. Also does some simple error checking to ensure the option will be valid before creation.

poll_parse_href

Processes topic data from poll management panel.

Reads through returned form data and assigns data to the poll datum, creating a new one if required, before passing it to be saved. Also does some simple error checking to ensure the poll will be valid before creation.

rank_flags

Get the rank flags of the admin

rank_names

Get the rank name of the admin

reban

Sometimes an admin did not intend to unban a player. This proc undoes an unbanning operation by setting the unbanned_ keys in the DB back to null.

remove_tagged_datum

Attempts to remove the specified datum from /datum/admins/var/tagged_datums if it exists

Arguments:

verify_admin_from_local_cache

Returns true if the admin's cid/ip is verified in the local cache