c0d348a678
- `{}` 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. |
||
---|---|---|
.. | ||
action.tpl | ||
away.tpl | ||
back.tpl | ||
ban_list.tpl | ||
channel_list.tpl | ||
ctcp.tpl | ||
invite.tpl | ||
join.tpl | ||
kick.tpl | ||
mode.tpl | ||
nick.tpl | ||
part.tpl | ||
quit.tpl | ||
topic_set_by.tpl | ||
topic.tpl | ||
whois.tpl |