mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
removes var/ inside all procs (#19450)
* removes var/ inside all procs * . * ugh
This commit is contained in:
@@ -2,7 +2,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
|
||||
|
||||
////////////////////////////////
|
||||
/proc/message_admins(var/msg)
|
||||
/proc/message_admins(msg)
|
||||
msg = span_filter_adminlog(span_log_message(span_prefix("ADMIN LOG:") + span_message("[msg]")))
|
||||
//log_admin_private(msg) //log_and_message_admins is for this
|
||||
|
||||
@@ -13,7 +13,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
html = msg,
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/msg_admin_attack(var/text) //Toggleable Attack Messages
|
||||
/proc/msg_admin_attack(text) //Toggleable Attack Messages
|
||||
var/rendered = span_filter_attacklog(span_log_message(span_prefix("ATTACK:") + span_message("[text]")))
|
||||
for(var/client/C in GLOB.admins)
|
||||
if(check_rights_for(C, (R_ADMIN|R_MOD)))
|
||||
@@ -24,7 +24,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
html = msg,
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/admin_notice(var/message, var/rights)
|
||||
/proc/admin_notice(message, rights)
|
||||
for(var/mob/M in GLOB.mob_list)
|
||||
var/C = M.client
|
||||
|
||||
@@ -262,7 +262,7 @@ ADMIN_VERB(PlayerNotes, R_ADMIN|R_MOD|R_EVENT|R_DEBUG, "Player Notes", "Access t
|
||||
A.tgui_interact(user)
|
||||
|
||||
|
||||
/datum/admins/proc/player_has_info(var/key as text)
|
||||
/datum/admins/proc/player_has_info(key as text)
|
||||
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
|
||||
var/list/infos
|
||||
info >> infos
|
||||
@@ -554,7 +554,7 @@ ADMIN_VERB(access_news_network, R_ADMIN|R_EVENT, "Access Newscaster Network", "A
|
||||
popup.open()
|
||||
|
||||
/*
|
||||
/datum/admins/proc/Secrets(var/datum/admin_secret_category/active_category = null)
|
||||
/datum/admins/proc/Secrets(datum/admin_secret_category/active_category = null)
|
||||
if(!check_rights(0)) return
|
||||
|
||||
// Print the header with category selection buttons.
|
||||
@@ -927,7 +927,7 @@ ADMIN_VERB(adrev, R_SERVER, "Toggle Revive", "Toggle admin revives.", ADMIN_CATE
|
||||
message_admins(span_blue("Toggled reviving to [CONFIG_GET(flag/allow_admin_rev)]."))
|
||||
feedback_add_details("admin_verb","TAR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/unprison(var/mob/M in GLOB.mob_list)
|
||||
/datum/admins/proc/unprison(mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Moderation"
|
||||
set name = "Unprison"
|
||||
if (M.z == 2)
|
||||
@@ -943,7 +943,7 @@ ADMIN_VERB(adrev, R_SERVER, "Toggle Revive", "Toggle admin revives.", ADMIN_CATE
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
|
||||
|
||||
/proc/is_special_character(var/character) // returns 1 for special characters and 2 for heroes of gamemode
|
||||
/proc/is_special_character(character) // returns 1 for special characters and 2 for heroes of gamemode
|
||||
if(!SSticker|| !SSticker.mode)
|
||||
return 0
|
||||
var/datum/mind/M
|
||||
@@ -1223,7 +1223,7 @@ ADMIN_VERB(toggleguests, R_HOST, "Toggle guests", "Guests can't enter.", ADMIN_C
|
||||
|
||||
//Returns 1 to let the dragdrop code know we are trapping this event
|
||||
//Returns 0 if we don't plan to trap the event
|
||||
/datum/admins/proc/cmd_ghost_drag(var/mob/observer/dead/frommob, var/mob/living/tomob)
|
||||
/datum/admins/proc/cmd_ghost_drag(mob/observer/dead/frommob, mob/living/tomob)
|
||||
if(!istype(frommob))
|
||||
return //Extra sanity check to make sure only observers are shoved into things
|
||||
|
||||
@@ -1322,7 +1322,7 @@ ADMIN_VERB(sendFax, R_ADMIN|R_MOD|R_EVENT, "Send Fax", "Sends a fax to this mach
|
||||
|
||||
/datum/admins/var/obj/item/paper/admin/faxreply // var to hold fax replies in
|
||||
|
||||
/datum/admins/proc/faxCallback(var/obj/item/paper/admin/P, var/obj/machinery/photocopier/faxmachine/destination)
|
||||
/datum/admins/proc/faxCallback(obj/item/paper/admin/P, obj/machinery/photocopier/faxmachine/destination)
|
||||
var/customname = tgui_input_text(src.owner, "Pick a title for the report", "Title")
|
||||
|
||||
P.name = "[P.origin] - [customname]"
|
||||
|
||||
Reference in New Issue
Block a user