summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Gadu-Gadu/src/core.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/core.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp
index 71c5726c0b..7009141127 100644
--- a/protocols/Gadu-Gadu/src/core.cpp
+++ b/protocols/Gadu-Gadu/src/core.cpp
@@ -299,12 +299,10 @@ void __cdecl GaduProto::mainthread(void *)
int hostcount = 0;
GGHOST hosts[64];
- if (m_useManualHosts) {
- CMStringW serverHosts = m_serverHosts;
- if (!serverHosts.IsEmpty()) {
- ptrA pHostsList(mir_u2a(serverHosts.c_str()));
- hostcount = gg_decodehosts(pHostsList, hosts, 64);
- }
+ CMStringW serverHosts = (m_useManualHosts) ? m_serverHosts : GG_KEYDEF_SERVERHOSTS;
+ if (!serverHosts.IsEmpty()) {
+ ptrA pHostsList(mir_u2a(serverHosts.c_str()));
+ hostcount = gg_decodehosts(pHostsList, hosts, 64);
}
// Readup password