Merge pull request #3705 from Citadel-Station-13/upstream-merge-32222
[MIRROR] Ignore verb now also shows ghost names
This commit is contained in:
@@ -259,9 +259,19 @@ GLOBAL_VAR_INIT(normal_ooc_colour, OOC_COLOR)
|
|||||||
set category = "OOC"
|
set category = "OOC"
|
||||||
set desc ="Ignore a player's messages on the OOC channel"
|
set desc ="Ignore a player's messages on the OOC channel"
|
||||||
|
|
||||||
var/selection = input("Please, select a player!", "Ignore", null, null) as null|anything in sortKey(GLOB.clients)
|
|
||||||
if(!selection)
|
var/see_ghost_names = isobserver(mob)
|
||||||
|
var/list/choices = list()
|
||||||
|
for(var/client/C in GLOB.clients)
|
||||||
|
if(isobserver(C.mob) && see_ghost_names)
|
||||||
|
choices["[C.mob]([C])"] = C
|
||||||
|
else
|
||||||
|
choices[C] = C
|
||||||
|
choices = sortList(choices)
|
||||||
|
var/selection = input("Please, select a player!", "Ignore", null, null) as null|anything in choices
|
||||||
|
if(!selection || !(selection in choices))
|
||||||
return
|
return
|
||||||
|
selection = choices[selection]
|
||||||
if(selection == src)
|
if(selection == src)
|
||||||
to_chat(src, "You can't ignore yourself.")
|
to_chat(src, "You can't ignore yourself.")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user