From 5301ab325c964ff216f2499d51ccc3337d9b6aa7 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 27 Mar 2014 21:22:54 +0000 Subject: [PATCH] /list num. users as topic when topic is empty - fixed --- server/irc/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] || '' }); }, -- 2.25.1