diff options
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index 7b48b87e90..b2d6e85b11 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -75,14 +75,14 @@ void CDiscordProto::ProcessRole(CDiscordGuild *guild, const JSONNode &role) static void sttSetGroupName(MCONTACT hContact, const wchar_t *pwszGroupName) { - ptrW wszOldName(db_get_wsa(hContact, "CList", "Group")); + ptrW wszOldName(Clist_GetGroup(hContact)); if (wszOldName != nullptr) { ptrW wszChatGroup(Chat_GetGroup()); if (mir_wstrcmpi(wszOldName, wszChatGroup)) return; // custom group, don't touch it } - db_set_ws(hContact, "CList", "Group", pwszGroupName); + Clist_SetGroup(hContact, pwszGroupName); } void CDiscordProto::BatchChatCreate(void *param) |