From: Vinicius Daly Felizardo Date: Thu, 20 Jun 2013 23:52:15 +0000 (-0400) Subject: Fixing identation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=65c5a4771ad9e8f00cbfbc505b24fea21daebac6;p=KiwiIRC.git Fixing identation --- diff --git a/client/assets/src/models/gateway.js b/client/assets/src/models/gateway.js index a13771c..f0d8db5 100644 --- a/client/assets/src/models/gateway.js +++ b/client/assets/src/models/gateway.js @@ -539,14 +539,13 @@ _kiwi.model.Gateway = function () { * @param {Fucntion} callback A callback function */ this.setEncoding = function (connection_id, new_encoding, callback) { - var data = { - method: 'encoding', - args: { - encoding: new_encoding - } - }; - - this.sendData(connection_id, data, callback); + var data = { + method: 'encoding', + args: { + encoding: new_encoding + } + }; + this.sendData(connection_id, data, callback); }; /** diff --git a/server/clientcommands.js b/server/clientcommands.js index 9448611..4937672 100644 --- a/server/clientcommands.js +++ b/server/clientcommands.js @@ -159,9 +159,9 @@ var listeners = { ENCODING: function (args, irc_connection, callback) { if (args.encoding) { if (irc_connection.setEncoding(args.encoding)) { - return callback('Encoding modified to '+args.encoding); + return callback('Encoding modified to '+args.encoding); } else { - return callback(args.encoding+' is not a valid encoding'); + return callback(args.encoding+' is not a valid encoding'); } } } diff --git a/server/irc/connection.js b/server/irc/connection.js index 3e0f75a..3f5a3d6 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -260,11 +260,11 @@ IrcConnection.prototype.disposeSocket = function () { */ IrcConnection.prototype.setEncoding = function (encoding) { - if (global.config.available_encodings.indexOf(encoding.toUpperCase()) >= 0) { - this.encoding = encoding.toUpperCase(); - return true; - } - return false; + if (global.config.available_encodings.indexOf(encoding.toUpperCase()) >= 0) { + this.encoding = encoding.toUpperCase(); + return true; + } + return false; };