mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-04 22:42:07 +00:00
Modular Computer Dead (#8753)
This commit is contained in:
@@ -244,3 +244,10 @@
|
||||
// Is called when program service is being deactivated
|
||||
/datum/computer_file/program/proc/service_deactivate()
|
||||
return
|
||||
|
||||
/datum/computer_file/program/proc/message_dead(var/message)
|
||||
for(var/mob/M in player_list)
|
||||
if(M.stat == DEAD && (M.client && M.client.prefs.toggles & CHAT_GHOSTEARS))
|
||||
if(isnewplayer(M))
|
||||
continue
|
||||
to_chat(M, message)
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
if(!message || !channel)
|
||||
return
|
||||
channel.add_message(message, username, usr)
|
||||
message_dead(FONT_SMALL("<b>([channel]) [username]:</b> [message]"))
|
||||
|
||||
if(href_list["PRG_joinchannel"])
|
||||
. = TRUE
|
||||
@@ -58,11 +59,13 @@
|
||||
channel = C
|
||||
return TRUE
|
||||
C.add_client(src)
|
||||
message_dead(FONT_SMALL("<b>([channel]) A new client ([username]) has entered the chat.</b>"))
|
||||
channel = C
|
||||
if(href_list["PRG_leavechannel"])
|
||||
. = TRUE
|
||||
if(channel && !channel.direct)
|
||||
channel.remove_client(src)
|
||||
message_dead(FONT_SMALL(FONT_SMALL("<b>([channel]) A new client ([username]) has left the chat.</b>")))
|
||||
channel = null
|
||||
if(href_list["PRG_backtomain"])
|
||||
. = TRUE
|
||||
@@ -77,6 +80,7 @@
|
||||
C.add_client(src)
|
||||
C.operator = src
|
||||
channel = C
|
||||
message_dead(FONT_SMALL("<b>([channel]) A new channel has been made by [username].</b>"))
|
||||
if(href_list["PRG_toggleadmin"])
|
||||
. = TRUE
|
||||
if(netadmin_mode)
|
||||
|
||||
6
html/changelogs/geeves-modular_computer_dead.yml
Normal file
6
html/changelogs/geeves-modular_computer_dead.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Ghosts with ghostears can now see IRC communications properly."
|
||||
Reference in New Issue
Block a user