Added ability to specify custom sounds for users when they log in.

This commit is contained in:
Storm Dragon
2025-11-22 18:31:22 -05:00
parent 769f59731d
commit 7e37570b43
3 changed files with 108 additions and 12 deletions

View File

@@ -400,12 +400,12 @@ def get_supported_language():
def set_logging_formatter(handler: logging.Handler, logging_level):
if logging_level == logging.DEBUG:
formatter = logging.Formatter(
"[%(asctime)s] > [%(threadName)s] > "
"[%(filename)s:%(lineno)d] %(message)s"
"%(message)s [%(asctime)s] > [%(threadName)s] > "
"[%(filename)s:%(lineno)d]"
)
else:
formatter = logging.Formatter(
'[%(asctime)s %(levelname)s] %(message)s', "%b %d %H:%M:%S")
'%(message)s [%(asctime)s %(levelname)s]', "%b %d %H:%M:%S")
handler.setFormatter(formatter)
@@ -534,7 +534,7 @@ def check_extra_config(config, template):
extra = []
for key in config.sections():
if key in ['radio']:
if key in ['radio', 'user_join_sounds']:
continue
for opt in config.options(key):
if not template.has_option(key, opt):