1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:13:01 +01:00

Port fix for invalid error handling of widechar conversions from master

This commit is contained in:
jfreegman 2020-11-24 20:09:29 -05:00
parent 0a0756ec6a
commit 4c903bab64
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -1471,8 +1471,10 @@ static bool groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
} else {
execute(ctx->history, self, m, line, GROUPCHAT_COMMAND_MODE);
}
} else {
} else if (line[0]) {
send_group_message(self, m, self->num, line, TOX_MESSAGE_TYPE_NORMAL);
} else {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, RED, " * Failed to parse message.");
}
wclear(ctx->linewin);