3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00
This commit is contained in:
reality 2013-08-12 23:18:40 +00:00
parent 0a212bab1d
commit 7517540cc5

View File

@ -12,6 +12,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, 'spelling')) {
var commands = _.keys(dbot.commands)