thelounge/src
Jérémie Astori c0d348a678
Fix default value given to Msg.from
- `{}` is not falsey so Handlebars would try to render the block (see http://handlebarsjs.com/builtin_helpers.html#conditionals), therefore with a `nick` of `undefined`, which breaks `colorClass` (doing `undefined.length)
- There does not seem to be a way to check for empty objects in Handlebars (sigh) so checking `from.nick` seems like the most reliable way to check for a non-empty value. Alternatively, we could use a helper to check `{}` but meh.
2017-11-29 18:37:17 -05:00
..
command-line Merge pull request #1708 from thelounge/astorije/thelounge 2017-11-27 13:58:46 +02:00
models Fix default value given to Msg.from 2017-11-29 18:37:17 -05:00
plugins Merge pull request #1758 from MaxLeiter/improve-regex 2017-11-27 18:30:37 -05:00
client.js Change users array to be a Map 2017-11-19 11:35:15 +02:00
clientManager.js Switch CLI tool from lounge to thelounge and deprecate lounge 2017-11-22 16:37:26 -05:00
helper.js Remove express-handlebars, read manifest.json to get theme-color 2017-11-19 19:43:43 +02:00
identification.js Avoid escaping quotes whenever possible 2017-11-26 17:34:28 -05:00
log.js Enable ESLint no-console rule to avoid future mistakes 2017-09-17 21:50:21 -04:00
server.js Don't send defaults if not displaying network 2017-11-19 19:46:04 +02:00
userLog.js Write correct timestamp to user log 2017-09-14 10:42:21 +03:00