mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Remove R_MENTOR & R_HOST
Flags unnecessary, procs and functions concerning them removed.
This commit is contained in:
@@ -314,7 +314,7 @@ proc/admin_notice(var/message, var/rights)
|
||||
I.rank = "N/A"
|
||||
update_file = 1
|
||||
dat += "<font color=#008800>[I.content]</font> <i>by [I.author] ([I.rank])</i> on <i><font color=blue>[I.timestamp]</i></font> "
|
||||
if(I.author == usr.key || I.author == "Adminbot" || ishost(usr))
|
||||
if(I.author == usr.key || I.author == "Adminbot")
|
||||
dat += "<A href='?src=\ref[src];remove_player_info=[key];remove_index=[i]'>Remove</A>"
|
||||
dat += "<br><br>"
|
||||
if(update_file) info << infos
|
||||
@@ -1277,20 +1277,6 @@ proc/admin_notice(var/message, var/rights)
|
||||
H.regenerate_icons()
|
||||
|
||||
|
||||
/*
|
||||
helper proc to test if someone is a mentor or not. Got tired of writing this same check all over the place.
|
||||
*/
|
||||
/proc/is_mentor(client/C)
|
||||
|
||||
if(!istype(C))
|
||||
return 0
|
||||
if(!C.holder)
|
||||
return 0
|
||||
|
||||
if(C.holder.rights == R_MENTOR)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/get_options_bar(whom, detail = 2, name = 0, link = 1, highlight_special = 1)
|
||||
if(!whom)
|
||||
return "<b>(*null*)</b>"
|
||||
@@ -1323,22 +1309,6 @@ proc/admin_notice(var/message, var/rights)
|
||||
var/ref_mob = "\ref[M]"
|
||||
return "<b>[key_name(C, link, name, highlight_special)] (<A HREF='?_src_=holder;adminmoreinfo=\ref[M]'>?</A>) (<A HREF='?_src_=holder;adminplayeropts=[ref_mob]'>PP</A>) (<A HREF='?_src_=vars;Vars=[ref_mob]'>VV</A>) (<A HREF='?_src_=holder;subtlemessage=[ref_mob]'>SM</A>) (<A HREF='?_src_=holder;adminplayerobservejump=[ref_mob]'>JMP</A>)</b>"
|
||||
|
||||
|
||||
/proc/ishost(whom)
|
||||
if(!whom)
|
||||
return 0
|
||||
var/client/C
|
||||
var/mob/M
|
||||
if(istype(whom, /client))
|
||||
C = whom
|
||||
if(istype(whom, /mob))
|
||||
M = whom
|
||||
C = M.client
|
||||
if(R_HOST & C.holder.rights)
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
//
|
||||
//
|
||||
//ALL DONE
|
||||
//*********************************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user