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 // deps
const _ = require('lodash'); const _ = require('lodash');
const moment = require('moment'); const moment = require('moment');
const Log = require('./logger.js');
module.exports = class LoginServerModule extends ServerModule { module.exports = class LoginServerModule extends ServerModule {
constructor() { constructor() {

View File

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