diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-02-16 08:37:01 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-02-16 08:37:01 +0000 |
commit | ec76e809446ffdf027297922d12f8dcf642e5bc6 (patch) | |
tree | ca21595341eab19f307622f681b5453c1d9dd9d4 /plugins | |
parent | 33c415a0771d01febf4194fd99efe5a4e9c650a1 (diff) |
SimpleStatusMsg: For new accounts use startup status "Last status" instead of "Offline" by default; Version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SimpleStatusMsg/src/Version.h | 18 | ||||
-rw-r--r-- | plugins/SimpleStatusMsg/src/options.cpp | 2 | ||||
-rw-r--r-- | plugins/SimpleStatusMsg/src/utils.cpp | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/plugins/SimpleStatusMsg/src/Version.h b/plugins/SimpleStatusMsg/src/Version.h index b42a79a9e9..88e6adc46a 100644 --- a/plugins/SimpleStatusMsg/src/Version.h +++ b/plugins/SimpleStatusMsg/src/Version.h @@ -1,14 +1,14 @@ #define __MAJOR_VERSION 1
#define __MINOR_VERSION 9
-#define __RELEASE_NUM 0
-#define __BUILD_NUM 4
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 5
#include <stdver.h>
-#define __PLUGIN_NAME "Simple status message"
-#define __FILENAME "SimpleStatusMsg.dll"
-#define __DESCRIPTION "Provides a simple way to set status and away messages."
-#define __AUTHOR "Bartosz 'Dezeath' Bialek, Harven"
-#define __AUTHOREMAIL "dezred@gmail.com"
-#define __AUTHORWEB "http://miranda-ng.org/p/SimpleStatusMsg/"
-#define __COPYRIGHT "© 2006-2011 Bartosz Bialek, 2005 Harven"
+#define __PLUGIN_NAME "Simple status message"
+#define __FILENAME "SimpleStatusMsg.dll"
+#define __DESCRIPTION "Provides a simple way to set status and away messages."
+#define __AUTHOR "Bartosz 'Dezeath' Bialek, Harven"
+#define __AUTHOREMAIL "dezred@gmail.com"
+#define __AUTHORWEB "http://miranda-ng.org/p/SimpleStatusMsg/"
+#define __COPYRIGHT "© 2006-2011 Bartosz Bialek, 2005 Harven"
diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp index d64a87d34e..d5b147eaf6 100644 --- a/plugins/SimpleStatusMsg/src/options.cpp +++ b/plugins/SimpleStatusMsg/src/options.cpp @@ -1459,7 +1459,7 @@ static INT_PTR CALLBACK DlgStatusOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wPa {
char setting[80];
mir_snprintf(setting, SIZEOF(setting), "Startup%sStatus", accounts->pa[i]->szModuleName);
- data->status[i] = db_get_w(NULL, "SimpleStatusMsg", setting, ID_STATUS_OFFLINE);
+ data->status[i] = db_get_w(NULL, "SimpleStatusMsg", setting, ID_STATUS_CURRENT);
mir_snprintf(setting, SIZEOF(setting), "Set%sStatusDelay", accounts->pa[i]->szModuleName);
data->setdelay[i] = db_get_w(NULL, "SimpleStatusMsg", setting, 300);
SendDlgItemMessage(hwndDlg, IDC_LISTPROTO, LB_SETITEMDATA, (WPARAM)index, (LPARAM)i);
diff --git a/plugins/SimpleStatusMsg/src/utils.cpp b/plugins/SimpleStatusMsg/src/utils.cpp index e199759257..b77b652757 100644 --- a/plugins/SimpleStatusMsg/src/utils.cpp +++ b/plugins/SimpleStatusMsg/src/utils.cpp @@ -148,7 +148,7 @@ int GetStartupStatus(const char *szProto) char szSetting[80];
mir_snprintf(szSetting, SIZEOF(szSetting), "Startup%sStatus", szProto);
- status_mode = db_get_w(NULL, "SimpleStatusMsg", szSetting, ID_STATUS_OFFLINE);
+ status_mode = db_get_w(NULL, "SimpleStatusMsg", szSetting, ID_STATUS_CURRENT);
if (status_mode == ID_STATUS_CURRENT) {
// load status used for this proto last time
mir_snprintf(szSetting, SIZEOF(szSetting), "Last%sStatus", szProto);
|