Made variables global

Made Ldefault,Udefault variables global in new_chat function
This commit is contained in:
Loup 2022-10-10 13:53:11 +05:30 committed by GitHub
parent 6b66c44167
commit 6e5964a01b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,6 +257,7 @@ def new_chat_message(msg: Union[str, ba.Lstr], clients: Sequence[int] = None, se
old_fcm(msg, clients, sender_override)
if msg == 'ml':
try:
global Ldefault,Udefault
Ldefault, Udefault = ba.app.config.get("moodlightingSettings")
SettingWindow()
cprint("Mood light settings opened")