Correctly avoid labelling 'work' as a command
This commit is contained in:
parent
7a481f6767
commit
bad414be39
|
@ -100,10 +100,10 @@ var Robot = module.exports = function Robot(opts) {
|
|||
|
||||
if (reserved.indexOf(n) < 0) {
|
||||
this[n] = opt;
|
||||
}
|
||||
|
||||
if (opts.commands == null && typeof(opt) === 'function') {
|
||||
this.commands[n] = opt;
|
||||
if (opts.commands == null && typeof(opt) === 'function') {
|
||||
this.commands[n] = opt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue