summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-07 10:17:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-07 10:17:28 +0000
commitcdce2ce7164855eb03909b088273b36a877edf69 (patch)
treeb2e933d52953b743c45caf9b6d35713075a5ad70 /plugins/TabSRMM/src/mim.h
parentc64f6aa70ba10a73b57d1cc149aa27119a681a81 (diff)
- special method for reading booleans
- fixed misprint that led to wrong chat event count git-svn-id: http://svn.miranda-ng.org/main/trunk@5251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.h')
-rw-r--r--plugins/TabSRMM/src/mim.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/mim.h b/plugins/TabSRMM/src/mim.h
index 9fcc2c6408..b4bde5e57b 100644
--- a/plugins/TabSRMM/src/mim.h
+++ b/plugins/TabSRMM/src/mim.h
@@ -132,10 +132,13 @@ public:
static int __forceinline GetByte(const char *szSetting, int uDefault)
{ return db_get_b(0, SRMSGMOD_T, szSetting, uDefault); }
static int __forceinline GetByte(const char *szModule, const char *szSetting, int uDefault)
- { return(db_get_b(0, szModule, szSetting, uDefault)); }
+ { return db_get_b(0, szModule, szSetting, uDefault); }
static int __forceinline GetByte(const HANDLE hContact, const char *szSetting, int uDefault)
{ return db_get_b(hContact, SRMSGMOD_T, szSetting, uDefault); }
+ static bool __forceinline GetBool(const char *szModule, const char *szSetting, bool uDefault)
+ { return db_get_b(0, szModule, szSetting, uDefault) != 0; }
+
/*
* path utilities
*/