From 28ce8b75e6c41742239a2025c5d97c024186a989 Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 30 Jan 2013 15:02:52 +0000 Subject: [PATCH] LUSER command implimented; Network stats output; --- server/irc/commands.js | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/server/irc/commands.js b/server/irc/commands.js index b18799c..9f32251 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -6,6 +6,14 @@ var irc_numerics = { RPL_ISUPPORT: '005', RPL_MAPMORE: '006', RPL_MAPEND: '007', + RPL_STATSCONN: '250', + RPL_LUSERCLIENT: '251', + RPL_LUSEROP: '252', + RPL_LUSERUNKNOWN: '253', + RPL_LUSERCHANNELS: '254', + RPL_LUSERME: '255', + RPL_LOCALUSERS: '265', + RPL_GLOBALUSERS: '266', RPL_WHOISREGNICK: '307', RPL_WHOISUSER: '311', RPL_WHOISSERVER: '312', @@ -676,6 +684,54 @@ var listeners = { var params = _.clone(command.params); params.shift(); genericNotice.call(this, command, command.trailing); + }, + + RPL_STATSCONN: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_LUSERCLIENT: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_LUSEROP: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_LUSERUNKNOWN: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_LUSERCHANNELS: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_LUSERME: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_LOCALUSERS: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); + }, + + RPL_GLOBALUSERS: function (command) { + var params = _.clone(command.params); + params.shift(); + genericNotice.call(this, command, params.join(', ') + ' ' + command.trailing); } }; -- 2.25.1