Stop command execution syntax running if line is not a command. Note [#337] was fixed a few commits ago too.

This commit is contained in:
reality 2013-04-12 17:42:11 +00:00
parent 58b58aa15f
commit 38c18366a3

View File

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