From e4adfc33305297f5f3da38990bb3f28ae9d13d91 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Date: Fri, 24 Sep 2021 16:39:12 +0100 Subject: [PATCH] Fix unhandled error on channel modes --- lib/irc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irc.js b/lib/irc.js index 23ccfe08..65afd3d9 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -294,7 +294,7 @@ function Client(server, nick, opt) { } else { channel.modeParams[mode] = [param]; } - } else { + } else if (channel.modeParams[mode]) { if (arr) { channel.modeParams[mode] = channel.modeParams[mode] .filter(function(v) { return v !== param[0]; });