From bd9ca7a5a880159ce279712029fc0dd1d7b0c4e5 Mon Sep 17 00:00:00 2001 From: Louis MILCENT Date: Tue, 3 Oct 2017 10:35:03 +0200 Subject: [PATCH] Resolv 'push' of undefined error when calling client.list() Resolve the following error: ```javascript node_modules/irc/lib/irc.js:849 throw err; ^ TypeError: Cannot read property 'push' of undefined at Client. (/[...]/node_modules/irc/lib/irc.js:449:33) ``` --- lib/irc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/irc.js b/lib/irc.js index 23ccfe08..d3219857 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -440,6 +440,7 @@ function Client(server, nick, opt) { self.emit('channellist_start'); break; case 'rpl_list': + self.channellist = []; channel = { name: message.args[1], users: message.args[2],