From 2e7f9dcf085ba41ab37bd3234c5fd27781896114 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 24 Mar 2016 22:19:56 +0000 Subject: Jabber: - Fixed dropdown list of public xmpp servers (fixes #1215) git-svn-id: http://svn.miranda-ng.org/main/trunk@16538 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_opt.cpp | 4 ++-- protocols/JabberG/src/stdafx.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 0c3d991720..9ac2c0ce8b 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -724,7 +724,7 @@ private: request.cbSize = sizeof(request); request.requestType = REQUEST_GET; request.flags = NLHRF_REDIRECT | NLHRF_HTTP11; - request.szUrl = "http://xmpp.org/services/services.xml"; + request.szUrl = JABBER_SERVER_URL; NETLIBHTTPREQUEST *result = (NETLIBHTTPREQUEST *)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)wnd->GetProto()->m_hNetlibUser, (LPARAM)&request); if (result) { @@ -2198,7 +2198,7 @@ void CJabberDlgAccMgrUI::QueryServerListThread(void *arg) request.cbSize = sizeof(request); request.requestType = REQUEST_GET; request.flags = NLHRF_GENERATEHOST | NLHRF_SMARTREMOVEHOST | NLHRF_SMARTAUTHHEADER | NLHRF_HTTP11; - request.szUrl = "http://xmpp.org/services/services.xml"; + request.szUrl = JABBER_SERVER_URL; NETLIBHTTPREQUEST *result = (NETLIBHTTPREQUEST *)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)wnd->GetProto()->m_hNetlibUser, (LPARAM)&request); if (result && IsWindow(hwnd)) { diff --git a/protocols/JabberG/src/stdafx.h b/protocols/JabberG/src/stdafx.h index 04e8779e45..0e54bb6000 100644 --- a/protocols/JabberG/src/stdafx.h +++ b/protocols/JabberG/src/stdafx.h @@ -176,6 +176,7 @@ protected: #define JABBER_GC_MSG_QUIT LPGENT("I'm happy Miranda NG user. Get it at http://miranda-ng.org/.") #define JABBER_GC_MSG_SLAP LPGENT("/me slaps %s around a bit with a large trout") +#define JABBER_SERVER_URL "https://xmpp.net/services.php" // registered db event types #define EVENTTYPE_JABBER_CHATSTATES 2000 -- cgit v1.2.3