trying to fix the break
This commit is contained in:
parent
92ab1b1c85
commit
a2c69af0a3
1 changed files with 3 additions and 2 deletions
|
@ -114,7 +114,7 @@ function commands (target, commandName, user, mods) {
|
||||||
if (message.search(command.command) !== -1) {
|
if (message.search(command.command) !== -1) {
|
||||||
client.say(target, `${command.reply}`);
|
client.say(target, `${command.reply}`);
|
||||||
valid = true;
|
valid = true;
|
||||||
break;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -141,10 +141,11 @@ function modCommands(target, commandName, isMod) {
|
||||||
if (message.search(command.command) !== -1) {
|
if (message.search(command.command) !== -1) {
|
||||||
if (!isMod) {
|
if (!isMod) {
|
||||||
client.say(target, `Only moderators can run this command...`);
|
client.say(target, `Only moderators can run this command...`);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
client.say(target, `${command.reply}`);
|
client.say(target, `${command.reply}`);
|
||||||
valid = true;
|
valid = true;
|
||||||
break;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue