Fix up some deprecated config refs

This commit is contained in:
Bryan Ashby 2020-06-07 21:21:31 -06:00
parent eb4f933285
commit dd2a6258d5
No known key found for this signature in database
GPG key ID: B49EB437951D2542
5 changed files with 27 additions and 26 deletions

View file

@ -433,10 +433,10 @@ function getThemeArt(options, cb) {
const config = Config();
if(!options.themeId && _.has(options, [ 'client', 'user', 'properties', UserProps.ThemeId ])) {
options.themeId = options.client.user.properties[UserProps.ThemeId];
} else {
options.themeId = config.theme.default;
}
options.themeId = options.themeId || config.theme.default;
// :TODO: replace asAnsi stuff with something like retrieveAs = 'ansi' | 'pipe' | ...
// :TODO: Some of these options should only be set if not provided!
options.asAnsi = true; // always convert to ANSI