From: Darren Date: Thu, 27 Mar 2014 21:22:54 +0000 (+0000) Subject: /list num. users as topic when topic is empty - fixed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5301ab325c964ff216f2499d51ccc3337d9b6aa7;p=KiwiIRC.git /list num. users as topic when topic is empty - fixed --- diff --git a/server/irc/commands.js b/server/irc/commands.js index 6f5a9d0..e1bf119 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -281,7 +281,7 @@ handlers = { this.irc_connection.emit('server ' + this.irc_connection.irc_host.hostname + ' list_channel', { channel: command.params[1], num_users: parseInt(command.params[2], 10), - topic: command.params[command.params.length - 1] + topic: command.params[3] || '' }); },