mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Restores mentors ability to PM people
This reverts commit 246daa0db12f56a320cdae6edf7b076b3f318f03.
This commit is contained in:
@@ -2,17 +2,19 @@
|
|||||||
/client/proc/cmd_admin_pm_context(mob/M as mob in GLOB.mob_list)
|
/client/proc/cmd_admin_pm_context(mob/M as mob in GLOB.mob_list)
|
||||||
set category = null
|
set category = null
|
||||||
set name = "Admin PM Mob"
|
set name = "Admin PM Mob"
|
||||||
if(!check_rights(R_ADMIN))
|
if(!check_rights(R_ADMIN|R_MENTOR))
|
||||||
|
return
|
||||||
|
if(!ismob(M) || !M.client)
|
||||||
return
|
return
|
||||||
if( !ismob(M) || !M.client ) return
|
|
||||||
cmd_admin_pm(M.client,null)
|
cmd_admin_pm(M.client,null)
|
||||||
feedback_add_details("admin_verb","APMM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
feedback_add_details("admin_verb","APMM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||||
|
|
||||||
|
|
||||||
//shows a list of clients we could send PMs to, then forwards our choice to cmd_admin_pm
|
//shows a list of clients we could send PMs to, then forwards our choice to cmd_admin_pm
|
||||||
/client/proc/cmd_admin_pm_panel()
|
/client/proc/cmd_admin_pm_panel()
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Admin PM Name"
|
set name = "Admin PM Name"
|
||||||
if(!check_rights(R_ADMIN))
|
if(!check_rights(R_ADMIN|R_MENTOR))
|
||||||
return
|
return
|
||||||
var/list/client/targets[0]
|
var/list/client/targets[0]
|
||||||
for(var/client/T)
|
for(var/client/T)
|
||||||
@@ -34,7 +36,7 @@
|
|||||||
/client/proc/cmd_admin_pm_by_key_panel()
|
/client/proc/cmd_admin_pm_by_key_panel()
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Admin PM Key"
|
set name = "Admin PM Key"
|
||||||
if(!check_rights(R_ADMIN))
|
if(!check_rights(R_ADMIN|R_MENTOR))
|
||||||
return
|
return
|
||||||
var/list/client/targets[0]
|
var/list/client/targets[0]
|
||||||
for(var/client/T)
|
for(var/client/T)
|
||||||
|
|||||||
Reference in New Issue
Block a user