Fix handling of commands (barring /me)
This commit is contained in:
parent
984f066070
commit
4cb52619aa
|
@ -166,15 +166,14 @@ Conversation::ImMessage(BMessage* msg)
|
|||
BString args = CommandArgs(body);
|
||||
ChatCommand* cmd = _GetServer()->CommandById(name, fLooper->GetInstance());
|
||||
|
||||
if (cmd == NULL && name != "me") {
|
||||
if (cmd == NULL) {
|
||||
if (name == "me")
|
||||
fMessenger.SendMessage(msg);
|
||||
else
|
||||
_WarnUser(BString(B_TRANSLATE("That isn't a valid command. "
|
||||
"Try /help for a list.")));
|
||||
break;
|
||||
}
|
||||
else {
|
||||
fMessenger.SendMessage(msg);
|
||||
break;
|
||||
}
|
||||
|
||||
BString error("");
|
||||
if (cmd->Parse(args, &error, this) == false)
|
||||
|
|
Ŝarĝante…
Reference in New Issue