diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-26 11:53:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-26 11:53:28 +0300 |
commit | 44e0a42d6130fbc42d826a7673d99480a06a87f6 (patch) | |
tree | 4d1eb5c2ef8ae351e871e3b43149b7b0220e34c5 /protocols/Discord/src | |
parent | 5df3cc2fd09d7afa8691658b52c08f456df381fe (diff) |
MS_UTILS_ENTERSTRING -> EnterString, useless service removed
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/groupchat.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/menus.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp index babe48803a..95e3c47fb8 100644 --- a/protocols/Discord/src/groupchat.cpp +++ b/protocols/Discord/src/groupchat.cpp @@ -96,7 +96,7 @@ void CDiscordProto::Chat_ProcessLogMenu(GCHOOK *gch) if (pUser == nullptr) return; - ENTER_STRING es = { sizeof(es) }; + ENTER_STRING es = {}; es.szModuleName = m_szModuleName; switch (gch->dwData) { diff --git a/protocols/Discord/src/menus.cpp b/protocols/Discord/src/menus.cpp index e2c4a602f6..f4faa56c10 100644 --- a/protocols/Discord/src/menus.cpp +++ b/protocols/Discord/src/menus.cpp @@ -39,7 +39,7 @@ INT_PTR CDiscordProto::OnMenuCopyId(WPARAM hContact, LPARAM) INT_PTR CDiscordProto::OnMenuCreateChannel(WPARAM hContact, LPARAM) { - ENTER_STRING es = { sizeof(es), ESF_COMBO, m_szModuleName, "channel_name", TranslateT("Enter channel name"), nullptr, 5 }; + ENTER_STRING es = { m_szModuleName, "channel_name", TranslateT("Enter channel name"), nullptr, ESF_COMBO, 5 }; if (EnterString(&es)) { JSONNode roles(JSON_ARRAY); roles.set_name("permission_overwrites"); JSONNode root; root << INT_PARAM("type", 0) << WCHAR_PARAM("name", es.ptszResult) << roles; @@ -54,7 +54,7 @@ INT_PTR CDiscordProto::OnMenuCreateChannel(WPARAM hContact, LPARAM) INT_PTR CDiscordProto::OnMenuJoinGuild(WPARAM, LPARAM) { - ENTER_STRING es = { sizeof(es), ESF_COMBO, m_szModuleName, "guild_name", TranslateT("Enter invitation code you received"), nullptr, 5 }; + ENTER_STRING es = { m_szModuleName, "guild_name", TranslateT("Enter invitation code you received"), nullptr, ESF_COMBO, 5 }; if (EnterString(&es)) { CMStringA szUrl(FORMAT, "/invite/%S", es.ptszResult); Push(new AsyncHttpRequest(this, REQUEST_POST, szUrl, nullptr)); |