summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_disco.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-17 19:28:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-17 19:28:29 +0300
commite7bd2ea75d6dbec2860d52124cf3b82fad98281d (patch)
tree33cd1b8a3e715b7e84f2ce47df1d61f3005068cf /protocols/JabberG/src/jabber_disco.cpp
parent9994031c204ac0d3780be1a3dee41aa039539b1f (diff)
Jabber: service-related options moved to Service Discovery menu
Diffstat (limited to 'protocols/JabberG/src/jabber_disco.cpp')
-rw-r--r--protocols/JabberG/src/jabber_disco.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_disco.cpp b/protocols/JabberG/src/jabber_disco.cpp
index e9371fa477..40d3c0a53f 100644
--- a/protocols/JabberG/src/jabber_disco.cpp
+++ b/protocols/JabberG/src/jabber_disco.cpp
@@ -93,7 +93,7 @@ static sttNodeIcons[] =
// icon suggestions based on supported features
{ "jabber:iq:gateway", nullptr, nullptr, IDI_AGENTS, 0 },
- { "jabber:iq:search", nullptr, nullptr, 0, SKINICON_OTHER_FINDUSER },
+ { JABBER_FEAT_JUD, nullptr, nullptr, 0, SKINICON_OTHER_FINDUSER },
{ JABBER_FEAT_COMMANDS, nullptr, nullptr, IDI_COMMAND, 0 },
{ JABBER_FEAT_REGISTER, nullptr, nullptr, 0, SKINICON_OTHER_KEYS },
};
@@ -1061,7 +1061,7 @@ void CJabberProto::ServiceDiscoveryShowMenu(CJabberSDNode *pNode, HTREELISTITEM
{ nullptr, LPGENW("Add to favorites"), SD_ACT_FAVORITE},
{ nullptr, LPGENW("Add to roster"), SD_ACT_ROSTER, SD_FLG_NONODE | SD_FLG_NOTONROSTER},
{ JABBER_FEAT_MUC, LPGENW("Bookmark chatroom"), SD_ACT_BOOKMARK, SD_FLG_NORESOURCE | SD_FLG_HASUSER},
- { "jabber:iq:search", LPGENW("Add search directory"), SD_ACT_ADDDIRECTORY},
+ { JABBER_FEAT_JUD, LPGENW("Add search directory"), SD_ACT_ADDDIRECTORY},
{ JABBER_FEAT_BYTESTREAMS, LPGENW("Use this proxy"), SD_ACT_PROXY},
{ nullptr },
{ JABBER_FEAT_REGISTER, LPGENW("Register"), SD_ACT_REGISTER},
@@ -1227,12 +1227,11 @@ void CJabberProto::ServiceDiscoveryShowMenu(CJabberSDNode *pNode, HTREELISTITEM
break;
case SD_ACT_ADDDIRECTORY:
- SearchAddToRecent(pNode->GetJid());
+ setUString("Jud", pNode->GetJid());
break;
case SD_ACT_PROXY:
- m_bBsDirect = FALSE;
- m_bBsProxyManual = TRUE;
+ m_bBsProxyManual = true;
setUString("BsProxyServer", pNode->GetJid());
break;