no vchat failed alert if we don't want vchat

This commit is contained in:
spookerton
2022-10-22 05:34:50 +01:00
parent ac532f4633
commit 6d1bb9ebce
+3 -4
View File
@@ -153,13 +153,12 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
/datum/chatOutput/proc/become_broken()
broken = TRUE
loaded = FALSE
if(!owner)
qdel(src)
return
update_vis()
if (!owner.is_preference_enabled(/datum/client_preference/vchat_enable))
return
spawn()
alert(owner,"VChat didn't load after some time. Switching to use oldchat as a fallback. Try using 'Reload VChat' verb in OOC verbs, or reconnecting to try again.")
@@ -418,4 +417,4 @@ var/global/to_chat_src
if(!fdel(o_file))
spawn(1 MINUTE)
if(!fdel(o_file))
log_debug("Warning: [ckey]'s chatlog could not be deleted one minute after file transfer was initiated. It is located at 'data/chatlog_tmp/[ckey]_chat_log' and will need to be manually removed.")
log_debug("Warning: [ckey]'s chatlog could not be deleted one minute after file transfer was initiated. It is located at 'data/chatlog_tmp/[ckey]_chat_log' and will need to be manually removed.")