From 94c7f52727d9e2dc67f0cebc5e2564036baebcdc Mon Sep 17 00:00:00 2001 From: Draggor Date: Fri, 1 Jun 2012 14:08:43 -0500 Subject: [PATCH] Fixing a problem with unloading plugins that aren't there --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 5d70360..4c426cb 100644 --- a/index.js +++ b/index.js @@ -186,6 +186,8 @@ bot.prototype.unloadPlugin = function(name, options) { this.removeListeners(pl); delete this.plugins[cleanName]; + } else { + throw 'Plugin not found: ' + name; } };