From: Cory Chaplin Date: Tue, 20 May 2014 20:17:32 +0000 (+0200) Subject: Wallops cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=20a8fb81c52d492a5f35fb39cd99854a674ea967;p=KiwiIRC.git Wallops cleanup --- diff --git a/client/src/models/gateway.js b/client/src/models/gateway.js index 724fe8e..8f1028b 100644 --- a/client/src/models/gateway.js +++ b/client/src/models/gateway.js @@ -428,7 +428,6 @@ _kiwi.model.Gateway = function () { this.rpcCall('irc.raw', connection_id, args, callback); }; - /** * Sends ENCODING change request to server. * @param {String} new_encoding The new proposed encode @@ -441,22 +440,7 @@ _kiwi.model.Gateway = function () { this.rpcCall('irc.encoding', connection_id, args, callback); }; - - /** - * Sends a Wallops message - * @param {String} target The target of the message - * @param {String} msg The message to send - * @param {Function} callback A callback function - */ - this.wallops = function (connection_id, target, msg, callback) { - var args = { - target: target, - msg: msg - }; - - this.rpcCall('irc.wallops', connection_id, args, callback); - }; - + return new (Backbone.Model.extend(this))(arguments); }; diff --git a/server/irc/commands.js b/server/irc/commands.js index 305e04e..a6db28b 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -1422,7 +1422,6 @@ handlers = { nick: command.nick, ident: command.ident, hostname: command.hostname, - target: this.irc_connection.nick, msg: command.params[command.params.length - 1] }); }, diff --git a/server/irc/user.js b/server/irc/user.js index d8083bc..13b8297 100755 --- a/server/irc/user.js +++ b/server/irc/user.js @@ -323,7 +323,6 @@ function onWallops(event) { nick: event.nick, ident: event.ident, hostname: event.hostname, - target: event.target, msg: event.msg, time: event.time });