Incorrect context for parseModeList()
authorDarren <darren@darrenwhitlen.com>
Sat, 12 Jul 2014 17:54:29 +0000 (18:54 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 12 Jul 2014 17:54:29 +0000 (18:54 +0100)
server/irc/commands/channel.js

index ac35bed6fee619ee5fcde871acf4c62e876e66ce..2709b3dfe621f6d944da011b673d16144ba08504 100644 (file)
@@ -10,7 +10,7 @@ module.exports = function AddCommandHandlers(command_controller) {
 var handlers = {
     RPL_CHANNELMODEIS: function (command) {
         var channel = command.params[1],
-            modes = parseModeList.call(this, command.params[2], command.params.slice(3));
+            modes = this.parseModeList.call(this, command.params[2], command.params.slice(3));
 
         this.emit('channel ' + channel + ' info', {
             channel: channel,