From f16a42bd813c0afc80dfc0f9cec155ae1f8a02de Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 3 Jul 2014 23:13:57 +0100 Subject: [PATCH] 'prefix' added to styleText member object --- client/src/helpers/utils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. -- 2.25.1