From 36ca8211e23c89ae7573767eeae55cdbff78e5e0 Mon Sep 17 00:00:00 2001 From: VerySoft Date: Sat, 11 Jun 2022 03:00:05 -0400 Subject: [PATCH] Make vchat warning only fire if vchat is enabled ME USE OLD CHAT ME NOT LIKE THAT IT WARNS ME THAT VCHAT ISN'T WORKING EVERY TIME WHEN I HAVE THE PREFERENCE FOR IT DISABLED So, this makes it only warn you about vchat not working if you have vchat enabled. --- code/modules/vchat/vchat_client.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/vchat/vchat_client.dm b/code/modules/vchat/vchat_client.dm index a918c94cde5..7520b41abb0 100644 --- a/code/modules/vchat/vchat_client.dm +++ b/code/modules/vchat/vchat_client.dm @@ -161,6 +161,7 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic update_vis() spawn() + if(owner.is_preference_enabled(/datum/client_preference/vchat_enable)) tgui_alert_async(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.") //Provide the JS with who we are