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.
This commit is contained in:
VerySoft
2022-06-11 03:00:05 -04:00
parent c8eb9d4c6d
commit 36ca8211e2
+1
View File
@@ -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