summaryrefslogtreecommitdiff
path: root/protocols/Omegle/communication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Omegle/communication.cpp')
-rw-r--r--protocols/Omegle/communication.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/protocols/Omegle/communication.cpp b/protocols/Omegle/communication.cpp
index bdc5490bb1..fc3f12d5e0 100644
--- a/protocols/Omegle/communication.cpp
+++ b/protocols/Omegle/communication.cpp
@@ -319,8 +319,8 @@ bool Omegle_client::start()
std::string data;
if (this->spy_mode_) {
- // Select any server but quarks, which doesn't support this (it seems)
- this->server_ = get_server(true);
+ // get last server from list, which is for spy mode
+ this->server_ = servers[SIZEOF(servers)-1];
if (this->question_.empty()) {
data = "&wantsspy=1";
@@ -370,9 +370,9 @@ bool Omegle_client::start()
data = "[" + data + "]";
data = "&topics=" + utils::url::encode(data);
}
-
- // Interests feature supports only Quarks server
- this->server_ = "quarks";
+
+ // get any server but last, which is for spy mode
+ this->server_ = get_server(true);
}
}
@@ -387,6 +387,13 @@ bool Omegle_client::start()
parent->UpdateChat(NULL, msg);
mir_free(msg);
}
+ } else {
+ char str[255];
+ mir_snprintf(str, sizeof(str), Translate("Connected to server %s."), server_.c_str());
+
+ TCHAR *msg = mir_a2t_cp(str,CP_UTF8);
+ parent->UpdateChat(NULL, msg);
+ mir_free(msg);
}
// Send validation