forked from GitHub/dbot
last commit meant admin commands couldnt be run. will rethink later.
This commit is contained in:
parent
38c18366a3
commit
11dcaac44c
@ -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 = '~';
|
||||||
|
Loading…
Reference in New Issue
Block a user