From b3896ef2c518fb3f59e4a689792310ba71986907 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 8 May 2014 00:49:03 +0100 Subject: [PATCH] Text theme ordering more logical; Text theme 'privmsg' naming consistency --- client/assets/text_themes/default.json | 16 +++++++--------- client/src/models/application.js | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/client/assets/text_themes/default.json b/client/assets/text_themes/default.json index 30c6145..772ab28 100644 --- a/client/assets/text_themes/default.json +++ b/client/assets/text_themes/default.json @@ -6,17 +6,18 @@ "channel_selfkick": "× %text", "channel_badpassword": "× %text", "channel_topic": "ⓘ %text", - "mode": "ⓘ %nick %text", - "selfmode": "ⓘ %nick %text", "channel_banned": "× %text", "channel_badkey": "⚠ %text", "channel_inviteonly": "⚠ %channel %text", "channel_alreadyin": "⚠ %nick %text", "channel_limitreached": "⚠ %channel %text", - "nickname_alreadyinuse": "⚠ %text", "channel_invalid_name": "⚠ %channel %text", - "network_disconnected": "⚠ %text", "channel_topic_setby": "ⓘ %text", + "channel_has_been_invited": "ⓘ %nick %text", + "mode": "ⓘ %nick %text", + "selfmode": "ⓘ %nick %text", + "nickname_alreadyinuse": "⚠ %text", + "network_disconnected": "⚠ %text", "whois_channels": "%text", "whois_idle_and_signon": "%text", "whois_away": "%text", @@ -25,7 +26,6 @@ "whois_notfound": "ⓘ %text", "nick_changed": "ⓘ %nick %text", "applet_notfound": "⚠ %text", - "channel_has_been_invited": "ⓘ %nick %text", "encoding_changed": "ⓘ %text", "encoding_invalid": "⚠ %text", "settings_saved": "ⓘ %text", @@ -38,8 +38,8 @@ "no_such_nick": "ⓘ %nick: %text", "unknown_command": "ⓘ %text", "motd": "%text", - "privmsg": "%text", "ctcp": "[CTCP] %text", + "privmsg": "%text", "notice": "%text", "action": "* %nick %text", "whois_ident": "%nick [%nick!%ident@%host] * %text", @@ -49,7 +49,5 @@ "rejoin": "%text", "set_setting": "ⓘ %text", "list_aliases": "ⓘ %text", - "ignored_pattern": "ⓘ %text", - "query": "%text", - "msg": "%text" + "ignored_pattern": "ⓘ %text" } \ No newline at end of file diff --git a/client/src/models/application.js b/client/src/models/application.js index e43a8e7..82547fa 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -531,7 +531,7 @@ if (message) { this.connections.active_connection.gateway.msg(panel.get('name'), message); - panel.addMsg(_kiwi.app.connections.active_connection.get('nick'), styleText('query', {text: message})); + panel.addMsg(_kiwi.app.connections.active_connection.get('nick'), styleText('privmsg', {text: message}), 'privmsg'); } } @@ -544,7 +544,7 @@ ev.params.shift(); message = formatToIrcMsg(ev.params.join(' ')); - panel.addMsg(_kiwi.app.connections.active_connection.get('nick'), styleText('msg', {text: message})); + panel.addMsg(_kiwi.app.connections.active_connection.get('nick'), styleText('privmsg', {text: message}), 'privmsg'); this.connections.active_connection.gateway.msg(destination, message); } -- 2.25.1