maybe actually have mentors that aren't broke as shit (#5954)

This commit is contained in:
Poojawa
2018-03-15 20:49:32 -05:00
committed by GitHub
parent 89f37cc8b7
commit 31d988344a
10 changed files with 43 additions and 42 deletions
@@ -1,3 +1,24 @@
/client/New()
. = ..()
mentor_datum_set()
/client/proc/citadel_client_procs(href_list)
if(href_list["mentor_msg"])
if(CONFIG_GET(flag/mentors_mobname_only))
var/mob/M = locate(href_list["mentor_msg"])
cmd_mentor_pm(M,null)
else
cmd_mentor_pm(href_list["mentor_msg"],null)
return TRUE
//Mentor Follow
if(href_list["mentor_follow"])
var/mob/living/M = locate(href_list["mentor_follow"])
if(istype(M))
mentor_follow(M)
return TRUE
/client/proc/mentor_datum_set(admin)
mentor_datum = GLOB.mentor_datums[ckey]
if(!mentor_datum && check_rights_for(src, R_ADMIN,0)) // admin with no mentor datum?let's fix that