Skip to content

Commit

Permalink
Fixing a problem with unloading plugins that aren't there
Browse files Browse the repository at this point in the history
  • Loading branch information
draggor committed Jun 1, 2012
1 parent 40b1d6f commit 94c7f52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -186,6 +186,8 @@ bot.prototype.unloadPlugin = function(name, options) {

this.removeListeners(pl);
delete this.plugins[cleanName];
} else {
throw 'Plugin not found: ' + name;
}
};

Expand Down

0 comments on commit 94c7f52

Please sign in to comment.