summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-03-08 10:39:54 +0000
committerRobert Pösel <robyer@seznam.cz>2013-03-08 10:39:54 +0000
commit7f1ee85eb7f34b57a5354d8cea91495742145f58 (patch)
treeace9a5a0f8808e1ce978f89591958365f27e9347 /protocols/Omegle/src
parentab00e50d6793f56e8e6b7f1a352a954f8b933b3b (diff)
Omegle:
- Added option to automatically connect to stranger when protocol is turned online - Updated readme - Version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@3912 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src')
-rw-r--r--protocols/Omegle/src/connection.cpp5
-rw-r--r--protocols/Omegle/src/constants.h4
-rw-r--r--protocols/Omegle/src/db.h1
-rw-r--r--protocols/Omegle/src/dialogs.cpp3
-rw-r--r--protocols/Omegle/src/resource.h1
5 files changed, 11 insertions, 3 deletions
diff --git a/protocols/Omegle/src/connection.cpp b/protocols/Omegle/src/connection.cpp
index 1ce07385d9..409b376a33 100644
--- a/protocols/Omegle/src/connection.cpp
+++ b/protocols/Omegle/src/connection.cpp
@@ -36,7 +36,10 @@ void OmegleProto::SignOn(void*)
setDword( "LogonTS", (DWORD)time(NULL));
ClearChat();
- OnJoinChat(0,false);
+ OnJoinChat(0,false);
+
+ if (getByte(OMEGLE_KEY_AUTO_CONNECT, 0))
+ NewChat();
//ToggleStatusMenuItems(true);
}
diff --git a/protocols/Omegle/src/constants.h b/protocols/Omegle/src/constants.h
index 6f1fbda166..319c184992 100644
--- a/protocols/Omegle/src/constants.h
+++ b/protocols/Omegle/src/constants.h
@@ -23,8 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
// Version management
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0,1,0,1)
-#define __VERSION_STRING "0.1.0.1"
+#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0,1,1,0)
+#define __VERSION_STRING "0.1.1.0"
// Product management
#define OMEGLE_NAME "Omegle"
diff --git a/protocols/Omegle/src/db.h b/protocols/Omegle/src/db.h
index fd0d290b3c..ea80a53d48 100644
--- a/protocols/Omegle/src/db.h
+++ b/protocols/Omegle/src/db.h
@@ -53,3 +53,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define OMEGLE_KEY_LOGGING "EnableLogging"
#define OMEGLE_KEY_SERVER_INFO "GetServerInfo"
#define OMEGLE_KEY_LAST_QUESTION "LastQuestion"
+#define OMEGLE_KEY_AUTO_CONNECT "AutoConnect"
diff --git a/protocols/Omegle/src/dialogs.cpp b/protocols/Omegle/src/dialogs.cpp
index 8045ea2e43..19f9fde011 100644
--- a/protocols/Omegle/src/dialogs.cpp
+++ b/protocols/Omegle/src/dialogs.cpp
@@ -167,6 +167,7 @@ INT_PTR CALLBACK OmegleOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPAR
LoadDBCheckState(proto, hwnd, IDC_REUSE_QUESTIONS, OMEGLE_KEY_REUSE_QUESTION);
LoadDBCheckState(proto, hwnd, IDC_SERVER_INFO, OMEGLE_KEY_SERVER_INFO);
LoadDBCheckState(proto, hwnd, IDC_LOGGING, OMEGLE_KEY_LOGGING);
+ LoadDBCheckState(proto, hwnd, IDC_AUTO_CONNECT, OMEGLE_KEY_AUTO_CONNECT);
} return TRUE;
@@ -194,6 +195,7 @@ INT_PTR CALLBACK OmegleOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPAR
case IDC_REUSE_QUESTIONS:
case IDC_SERVER_INFO:
case IDC_LOGGING:
+ case IDC_AUTO_CONNECT:
if (HIWORD(wparam) == BN_CLICKED) {
SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0);
} break;
@@ -220,6 +222,7 @@ INT_PTR CALLBACK OmegleOptionsProc( HWND hwnd, UINT message, WPARAM wparam, LPAR
StoreDBCheckState(proto, hwnd, IDC_REUSE_QUESTIONS, OMEGLE_KEY_REUSE_QUESTION);
StoreDBCheckState(proto, hwnd, IDC_SERVER_INFO, OMEGLE_KEY_SERVER_INFO);
StoreDBCheckState(proto, hwnd, IDC_LOGGING, OMEGLE_KEY_LOGGING);
+ StoreDBCheckState(proto, hwnd, IDC_AUTO_CONNECT, OMEGLE_KEY_AUTO_CONNECT);
return TRUE;
}
diff --git a/protocols/Omegle/src/resource.h b/protocols/Omegle/src/resource.h
index 0cfab1d840..cc7a7d5af1 100644
--- a/protocols/Omegle/src/resource.h
+++ b/protocols/Omegle/src/resource.h
@@ -18,6 +18,7 @@
#define IDC_REUSE_QUESTIONS 1215
#define IDC_LOGGING 1216
#define IDC_SERVER_INFO 1217
+#define IDC_AUTO_CONNECT 1219
// Next default values for new objects
//