mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Private message fixes. Stealth-mode / admin != maroon
Stealth-Mode Admins won't have their keys show up in the title of private messages anymore (unless the person sending the message is mod+) Admins PM's to players will show up as red again. You are welcome Virgie!
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
//get message text, limit it's length.and clean/escape html
|
//get message text, limit it's length.and clean/escape html
|
||||||
if(!msg)
|
if(!msg)
|
||||||
msg = input(src,"Message:", "Private message to [C.key]") as text|null
|
msg = input(src,"Message:", "Private message to [key_name(C, 0, holder ? 1 : 0)]") as text|null
|
||||||
|
|
||||||
if(!msg) return
|
if(!msg) return
|
||||||
if(!C)
|
if(!C)
|
||||||
@@ -80,10 +80,10 @@
|
|||||||
//mod PMs are maroon
|
//mod PMs are maroon
|
||||||
//PMs sent from admins and mods display their rank
|
//PMs sent from admins and mods display their rank
|
||||||
if(holder)
|
if(holder)
|
||||||
if( holder.rights & R_MOD )
|
if( holder.rights & R_ADMIN )
|
||||||
recieve_color = "maroon"
|
|
||||||
else
|
|
||||||
recieve_color = "red"
|
recieve_color = "red"
|
||||||
|
else
|
||||||
|
recieve_color = "maroon"
|
||||||
send_pm_type = holder.rank + " "
|
send_pm_type = holder.rank + " "
|
||||||
recieve_pm_type = holder.rank
|
recieve_pm_type = holder.rank
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user