Quick fixes again, firstly, you won't hear emotes at the login screen (Didn't realize new_player was being put into the dead list), and admins that are promoted/demoted will be added/removed to the list as needed.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4206 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
sieve32@gmail.com
2012-07-29 01:34:15 +00:00
parent affab1467d
commit e3acc68917
4 changed files with 7 additions and 4 deletions

View File

@@ -1454,6 +1454,7 @@ var/global/BSACooldown = 0
log_admin("[key_name(usr)] has removed [C]'s adminship")
message_admins("[key_name_admin(usr)] has removed [C]'s adminship", 1)
admins.Remove(C.ckey)
admin_list -= C.mob
else
if(C == owner) //no promoting/demoting yourself
message_admins("[C] tried to change their own admin-rank >:(")
@@ -1463,6 +1464,7 @@ var/global/BSACooldown = 0
log_admin("[key_name(usr)] has made [C] a [rank]")
message_admins("[key_name_admin(usr)] has made [C] a [rank]", 1)
admins[C.ckey] = rank
admin_list |= C.mob
if (href_list["object_list"])

View File

@@ -751,6 +751,7 @@
src.clear_admin_verbs()
src.update_admins(null)
admins.Remove(src.ckey)
admin_list -= src.mob
usr << "You are now a normal player."
feedback_add_details("admin_verb","DAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

View File

@@ -48,8 +48,8 @@
log_emote("[name]/[key] : [message]")
for(var/mob/M in dead_mob_list)
if (!M.client)
continue //skip monkeys and leavers
if (!M.client || istype(M, /mob/new_player))
continue //skip monkeys, leavers, and new_players
if(M.stat == 2 && M.client.ghost_sight && !(M in viewers(src,null)))
M.show_message(message)

View File

@@ -475,8 +475,8 @@
// Maybe some people are okay with that.
for(var/mob/M in dead_mob_list)
if (!M.client)
continue //skip monkeys and leavers
if (!M.client || istype(M, /mob/new_player))
continue //skip monkeys, leavers and new players
if(M.stat == 2 && M.client.ghost_sight && !(M in viewers(src,null)))
M.show_message(message)