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