From 20a8fb81c52d492a5f35fb39cd99854a674ea967 Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Tue, 20 May 2014 22:17:32 +0200 Subject: [PATCH] Wallops cleanup --- client/src/models/gateway.js | 18 +----------------- server/irc/commands.js | 1 - server/irc/user.js | 1 - 3 files changed, 1 insertion(+), 19 deletions(-) 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 }); -- 2.25.1