From 2bcae26b903feb56942abbbd1d646ae42ba735b0 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Wed, 4 Jun 2014 20:33:30 +0100 Subject: [PATCH] Rename 'host' to 'hostname' in whois client event Fixes #511 --- client/src/models/network.js | 4 ++-- server/irc/user.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/models/network.js b/client/src/models/network.js index b4a1d9b..6673bc4 100644 --- a/client/src/models/network.js +++ b/client/src/models/network.js @@ -706,7 +706,7 @@ panel = _kiwi.app.panels().active; if (event.ident) { - panel.addMsg(event.nick, styleText('whois_ident', {nick: event.nick, ident: event.ident, host: event.host, text: event.msg}), 'whois'); + panel.addMsg(event.nick, styleText('whois_ident', {nick: event.nick, ident: event.ident, host: event.hostname, text: event.msg}), 'whois'); } else if (event.chans) { panel.addMsg(event.nick, styleText('whois_channels', {nick: event.nick, text: translateText('client_models_network_channels', [event.chans])}), 'whois'); @@ -735,7 +735,7 @@ panel = _kiwi.app.panels().active; if (event.host) { - panel.addMsg(event.nick, styleText('who', {nick: event.nick, ident: event.ident, host: event.host, realname: event.real_name, text: event.msg}), 'whois'); + panel.addMsg(event.nick, styleText('who', {nick: event.nick, ident: event.ident, host: event.hostname, realname: event.real_name, text: event.msg}), 'whois'); } else { panel.addMsg(event.nick, styleText('whois_notfound', {nick: event.nick, text: translateText('client_models_network_nickname_notfound', [])}), 'whois'); } diff --git a/server/irc/user.js b/server/irc/user.js index 89f8035..91d10f8 100755 --- a/server/irc/user.js +++ b/server/irc/user.js @@ -85,7 +85,7 @@ function onWhoisUser(event) { this.irc_connection.clientEvent('whois', { nick: event.nick, ident: event.ident, - host: event.host, + hostname: event.host, msg: event.msg, end: false }); @@ -209,7 +209,7 @@ function onWhoWas(event) { this.irc_connection.clientEvent('whowas', { nick: event.nick, ident: event.user, - host: event.host, + hostname: event.host, real_name: event.real_name, end: false }); -- 2.25.1