diff --git a/src/client.js b/src/client.js index 9d555877..8a2a009e 100644 --- a/src/client.js +++ b/src/client.js @@ -354,7 +354,7 @@ Client.prototype.inputLine = function(data) { const irc = target.network.irc; let connected = irc && irc.connection && irc.connection.connected; - if (cmd in inputs) { + if (inputs.hasOwnProperty(cmd) && typeof inputs[cmd].input === "function") { const plugin = inputs[cmd]; if (connected || plugin.allowDisconnected) {