mirror of
https://github.com/reality/dbot.git
synced 2025-05-02 22:37:25 +02:00
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:
parent
58b58aa15f
commit
38c18366a3
@ -13,6 +13,9 @@ 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…
x
Reference in New Issue
Block a user