Formatting colourised strings before inserting values
authorDarren <darren@darrenwhitlen.com>
Wed, 8 Oct 2014 09:31:42 +0000 (10:31 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 8 Oct 2014 09:31:42 +0000 (10:31 +0100)
client/src/helpers/utils.js

index f0495bc282c281c3ec97ef8caac6c316534cf848..1aae381c5ee59bc42c47e26b34b4813f2b15016f 100644 (file)
@@ -525,6 +525,7 @@ function styleText(string_id, params) {
 
     //style = formatToIrcMsg(_kiwi.app.text_theme[string_id]);
     style = _kiwi.app.text_theme[string_id];
+    style = formatToIrcMsg(style);
 
     // Expand a member mask into its individual parts (nick, ident, hostname)
     if (params.member) {
@@ -540,6 +541,5 @@ function styleText(string_id, params) {
             return params[key];
     });
 
-    text = formatToIrcMsg(text);
     return text;
 }