Bug 753807 - Land in comm-central Instantbird's changes to chat/ - Bio 1327 - Commands are "not supported" when missing parameters or returning false, r=clokep.
This commit is contained in:
Родитель
75269d8efe
Коммит
c35774d9b8
|
@ -242,7 +242,11 @@ CommandsService.prototype = {
|
|||
|
||||
// cmdArray contains commands sorted by priority, attempt to apply
|
||||
// them in order until one succeeds.
|
||||
return cmdArray.some(function (aCmd) aCmd.run(args, aConversation));
|
||||
if (!cmdArray.some(function (aCmd) aCmd.run(args, aConversation))) {
|
||||
// If they all failed, print help message.
|
||||
this.executeCommand("/help " + name, aConversation);
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.imICommandsService]),
|
||||
|
|
Загрузка…
Ссылка в новой задаче