From: Darren Date: Thu, 3 Jul 2014 22:13:57 +0000 (+0100) Subject: 'prefix' added to styleText member object X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f16a42bd813c0afc80dfc0f9cec155ae1f8a02de;p=KiwiIRC.git 'prefix' added to styleText member object --- diff --git a/client/src/helpers/utils.js b/client/src/helpers/utils.js index af416a2..114ca61 100644 --- a/client/src/helpers/utils.js +++ b/client/src/helpers/utils.js @@ -528,9 +528,10 @@ function styleText(string_id, params) { // Expand a member mask into its individual parts (nick, ident, hostname) if (params.member) { - params.nick = params.member.nick; - params.ident = params.member.ident; - params.host = params.member.hostname; + params.nick = params.member.nick || ''; + params.ident = params.member.ident || ''; + params.host = params.member.hostname || ''; + params.prefix = params.member.prefix || ''; } // Do the magic. Use the %shorthand syntax to produce output.