2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-31 05:55:08 +00:00

Prevent some bitlbee crashes

This commit is contained in:
Arseniy Lartsev
2020-08-27 20:42:57 +02:00
parent 23a14aa586
commit fbd1c548a5
2 changed files with 3 additions and 3 deletions

View File

@@ -2194,7 +2194,7 @@ void PurpleTdClient::kickUserFromChat(PurpleConversation *conv, const char *name
if (!chat) {
// Unlikely error message not worth translating
purple_conversation_write(conv, NULL, "Chat not found", PURPLE_MESSAGE_NO_LOG, time(NULL));
purple_conversation_write(conv, "", "Chat not found", PURPLE_MESSAGE_NO_LOG, time(NULL));
return;
}
@@ -2206,7 +2206,7 @@ void PurpleTdClient::kickUserFromChat(PurpleConversation *conv, const char *name
"More than one user found with this name";
// TRANSLATOR: In-chat error message, argument is a reason (text)
std::string message = formatMessage(_("Cannot kick user: {}"), std::string(reason));
purple_conversation_write(conv, NULL, message.c_str(), PURPLE_MESSAGE_NO_LOG, 0);
purple_conversation_write(conv, "", message.c_str(), PURPLE_MESSAGE_NO_LOG, 0);
return;
}