From 4588d6a0fb7983b74d656779864aaa0a39465546 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 4 May 2024 18:45:50 +0300 Subject: #4388 part 1 --- protocols/Discord/src/groupchat.cpp | 3 +-- protocols/Discord/src/proto.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Discord/src') diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp index 95948fc5f3..832e254523 100644 --- a/protocols/Discord/src/groupchat.cpp +++ b/protocols/Discord/src/groupchat.cpp @@ -64,7 +64,6 @@ void BuildStatusList(const CDiscordGuild *pGuild, SESSION_INFO *si) static gc_item sttLogListItems[] = { { LPGENW("Change &nickname"), IDM_CHANGENICK, MENU_ITEM }, - { nullptr, 0, MENU_SEPARATOR }, { LPGENW("Invite users"), IDM_INVITE, MENU_ITEM }, { LPGENW("Channel control"), FALSE, MENU_NEWPOPUP }, { LPGENW("Change &topic"), IDM_CHANGETOPIC, MENU_POPUPITEM }, @@ -101,7 +100,7 @@ int CDiscordProto::GroupchatMenuHook(WPARAM, LPARAM lParam) sttShowGcMenuItem(_countof(sttLogListItems), sttLogListItems, IDM_CHANGENICK, 0); sttShowGcMenuItem(_countof(sttLogListItems), sttLogListItems, IDM_LEAVE, isOwner ? 0 : MENU_POPUPITEM); - sttShowGcMenuItem(_countof(sttLogListItems), sttLogListItems, IDM_DESTROY, isOwner ? 0 : MENU_POPUPITEM); + sttShowGcMenuItem(_countof(sttLogListItems), sttLogListItems, IDM_DESTROY, isOwner ? MENU_POPUPITEM : 0); Chat_AddMenuItems(gcmi->hMenu, _countof(sttLogListItems), sttLogListItems, &g_plugin); } diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index 0cb25c33de..712c2cb6e4 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -220,7 +220,7 @@ INT_PTR CDiscordProto::GetCaps(int type, MCONTACT) case PFLAGNUM_1: return PF1_IM | PF1_MODEMSG | PF1_MODEMSGRECV | PF1_SERVERCLIST | PF1_BASICSEARCH | PF1_EXTSEARCH | PF1_ADDSEARCHRES | PF1_FILESEND; case PFLAGNUM_2: - return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_HEAVYDND | PF2_INVISIBLE; + return PF2_ONLINE | PF2_LONGAWAY | PF2_HEAVYDND | PF2_INVISIBLE; case PFLAGNUM_3: return PF2_ONLINE | PF2_LONGAWAY | PF2_HEAVYDND | PF2_INVISIBLE; case PFLAGNUM_4: -- cgit v1.2.3