last commit meant admin commands couldnt be run. will rethink later.

This commit is contained in:
reality 2013-04-12 17:59:51 +00:00
parent 38c18366a3
commit 11dcaac44c

View File

@ -13,9 +13,6 @@ var command = function(dbot) {
*/ */
this.listener = function(event) { this.listener = function(event) {
var commandName = event.params[0]; var commandName = event.params[0];
if(commandName.charAt(0) != '~') {
return;
}
if(!_.has(dbot.commands, commandName)) { if(!_.has(dbot.commands, commandName)) {
if(_.has(dbot.modules, 'quotes')) { if(_.has(dbot.modules, 'quotes')) {
commandName = '~'; commandName = '~';