diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-06-19 11:06:56 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-06-19 11:06:56 +0000 |
commit | 03dd87df0b288fd0f0f512fb0bbff29e8c00f366 (patch) | |
tree | 09f731f080c2ca40869553636f39a680f9bf2479 /protocols/Omegle/communication.cpp | |
parent | 3f23417a1099f73dc28ec1b7d6ec2a1a7fc2b7a2 (diff) |
Omegle sync.
git-svn-id: http://svn.miranda-ng.org/main/trunk@478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/communication.cpp')
-rw-r--r-- | protocols/Omegle/communication.cpp | 17 |
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
|