[s]fix slight error (#25699)

* fix slight error

* fixes .? issue
This commit is contained in:
Qwertytoforty
2024-05-30 13:32:03 -04:00
committed by GitHub
parent d5eee09abc
commit 91aa03d64a
6 changed files with 22 additions and 7 deletions
+4 -1
View File
@@ -649,8 +649,11 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
new_key = copytext(new_key, 1, 26)
holder.fakekey = new_key
holder.big_brother = 1
if(isobserver(mob))
mob.invisibility = 90
mob.see_invisible = 90
createStealthKey()
log_admin("[key_name(usr)] has turned BB mode [holder.fakekey ? "ON" : "OFF"]")
log_admin("[key_name(usr)] has turned BB mode [holder.fakekey ? "ON" : "OFF"]", TRUE)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Big Brother Mode")
/client/proc/drop_bomb() // Some admin dickery that can probably be done better -- TLE
+8 -2
View File
@@ -76,13 +76,19 @@ GLOBAL_VAR_INIT(nologevent, 0)
if(!check_rights(R_ADMIN|R_MOD))
return
var/our_key = M.key
if(M.client && M.client.holder)
if(M.client.holder.fakekey && M.client.holder.big_brother)
our_key = M.client.holder.fakekey
var/body = "<html><meta charset='UTF-8'><head><title>Options for [M.key]</title></head>"
var/body = "<html><meta charset='UTF-8'><head><title>Options for [our_key]</title></head>"
body += "<body>Options panel for <b>[M]</b>"
if(M.client)
body += " played by <b>[M.client]</b> "
if(check_rights(R_PERMISSIONS, 0))
if(check_rights(R_PERMISSIONS, FALSE))
body += "\[<A href='byond://?_src_=holder;editrights=rank;ckey=[M.ckey]'>[M.client.holder ? M.client.holder.rank : "Player"]</A>\] "
else if(M.client.holder && M.client.holder.fakekey && M.client.holder.big_brother)
body += "\[Player\] "
else
body += "\[[M.client.holder ? M.client.holder.rank : "Player"]\] "
body += "\[<A href='byond://?_src_=holder;getplaytimewindow=[M.UID()]'>" + M.client.get_exp_type(EXP_TYPE_CREW) + " as [EXP_TYPE_CREW]</a>\]"
+3
View File
@@ -225,6 +225,9 @@
var/i = 1
for(var/mob/M in mobs)
if(M.ckey)
if(M.client)
if(M.client?.holder?.big_brother && !check_rights(R_PERMISSIONS, FALSE)) // normal admins can't see BB
continue
var/color = "#e6e6e6"
if(i%2 == 0)
+2
View File
@@ -41,6 +41,8 @@
return
var/list/client/targets[0]
for(var/client/T)
if(T?.holder?.big_brother && !check_rights(R_PERMISSIONS, FALSE)) // normal admins can't see BB
continue
if(T.mob)
if(isnewplayer(T.mob))
targets["[T] - (New Player)"] = T