Small bugfixes

This commit is contained in:
Nathan Byrd 2023-09-08 19:52:08 +00:00
parent 8fd25af7a1
commit 96c8a25f83
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ const UserProps = require('./user_property.js');
// deps
const _ = require('lodash');
const moment = require('moment');
const Log = require('./logger.js');
module.exports = class LoginServerModule extends ServerModule {
constructor() {

View File

@ -14,7 +14,6 @@ const UserProps = require('./user_property.js');
const ConfigLoader = require('./config_loader');
const { getConfigPath } = require('./config_util');
const theme = require('./theme.js');
// deps
const fs = require('graceful-fs');
@ -420,9 +419,9 @@ function getRandomTheme() {
}
}
function selectDefaultTheme(client) {
const selectedTheme = theme.findMatching(client, Config().theme.default);
const selectedTheme = findMatching(client, Config().theme.default);
if (_.isNil(selectedTheme) || '*' === selectedTheme) {
return theme.getRandomTheme() || '';
return getRandomTheme() || '';
} else {
return selectedTheme;
}