* Trailing LF handling is now 'trailingLF' option, with 'default', 'yes', 'no', etc.
* Initial checking of WIP Mystery Skulls theme by Luciano Ayres of blocktronics * Fix random theme selection * WIP on theme customization apply: Needs to be much more flexible than current * MenuModule will use .next > .fallback > default fallback
This commit is contained in:
16
core/bbs.js
16
core/bbs.js
@@ -238,18 +238,18 @@ function startListening() {
|
||||
}
|
||||
|
||||
function prepareClient(client, cb) {
|
||||
var theme = require('./theme.js');
|
||||
|
||||
// :TODO: it feels like this should go somewhere else... and be a bit more elegant.
|
||||
|
||||
if('*' === conf.config.preLoginTheme) {
|
||||
var theme = require('./theme.js');
|
||||
|
||||
client.user.properties.theme_id = theme.getRandomTheme() || '';
|
||||
|
||||
theme.loadTheme(client.user.properties.theme_id, function themeLoaded(err, theme) {
|
||||
client.currentTheme = theme;
|
||||
cb(null);
|
||||
});
|
||||
} else {
|
||||
client.user.properties.theme_id = conf.config.preLoginTheme;
|
||||
cb(null);
|
||||
}
|
||||
|
||||
theme.loadTheme(client.user.properties.theme_id, function themeLoaded(err, theme) {
|
||||
client.currentTheme = theme;
|
||||
cb(null);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user