/list num. users as topic when topic is empty - fixed
authorDarren <darren@darrenwhitlen.com>
Thu, 27 Mar 2014 21:22:54 +0000 (21:22 +0000)
committerDarren <darren@darrenwhitlen.com>
Thu, 27 Mar 2014 21:22:54 +0000 (21:22 +0000)
server/irc/commands.js

index 6f5a9d024b27ad9abd7248f46b6dcc5975725c76..e1bf1191b1b765ec7f60398fd30a85ff24da724b 100644 (file)
@@ -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] || ''
         });
     },