mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-20 09:45:53 +02:00
* 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:
parent
68b8af7975
commit
05812f57f0
25 changed files with 187 additions and 105 deletions
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);
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue