mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 01:53:02 +01:00
Port fix for invalid error handling of widechar conversions from master
This commit is contained in:
parent
0a0756ec6a
commit
4c903bab64
@ -1471,8 +1471,10 @@ static bool groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
|
|||||||
} else {
|
} else {
|
||||||
execute(ctx->history, self, m, line, GROUPCHAT_COMMAND_MODE);
|
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);
|
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);
|
wclear(ctx->linewin);
|
||||||
|
Loading…
Reference in New Issue
Block a user