diff options
-rw-r--r-- | protocols/Omegle/communication.cpp | 17 | ||||
-rw-r--r-- | protocols/Omegle/constants.h | 3 | ||||
-rw-r--r-- | protocols/Omegle/omegle.rc | 6 |
3 files changed, 17 insertions, 9 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
diff --git a/protocols/Omegle/constants.h b/protocols/Omegle/constants.h index 8f4227100e..6f1fbda166 100644 --- a/protocols/Omegle/constants.h +++ b/protocols/Omegle/constants.h @@ -51,4 +51,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define OMEGLE_REQUEST_RECAPTCHA 400 // recaptcha handling
// Servers list
-static const char *servers[] = {"Random", "bajor", "cardassia", "promenade", "odo-bucket", "ferengi", "quarks"};
\ No newline at end of file +//static const char *servers[] = {"Random", "bajor", "cardassia", "promenade", "odo-bucket", "ferengi", "quilt", "empok-nor", "quibbler"};
+static const char *servers[] = {"Random", "front1", "front2", "front3", "front4", "qfront1"};
\ No newline at end of file diff --git a/protocols/Omegle/omegle.rc b/protocols/Omegle/omegle.rc index 0c2bae4bcf..71fece8bba 100644 --- a/protocols/Omegle/omegle.rc +++ b/protocols/Omegle/omegle.rc @@ -167,8 +167,8 @@ IDI_OMEGLE ICON "icons/omegle.ico" //
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 0,1,0,0
- PRODUCTVERSION 0,9,43,0
+ FILEVERSION 0,1,0,1
+ PRODUCTVERSION 0,1,0,1
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -189,7 +189,7 @@ BEGIN VALUE "LegalCopyright", "Copyright © 2011-12 Robert Pösel"
VALUE "OriginalFilename", "omegle.dll"
VALUE "ProductName", "Omegle Protocol"
- VALUE "ProductVersion", "0.9.43.0"
+ VALUE "ProductVersion", "0.1.0.1"
END
END
BLOCK "VarFileInfo"
|