diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 18:59:19 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 18:59:19 +0000 |
commit | a5e65f02c7e37bed18fbca915e8040358d0f4fe7 (patch) | |
tree | ea9c8bfea65445c37181f77e4514cf7d98a1edcc /plugins/Non-IM Contact/src/timer.cpp | |
parent | 419ee29ab88a47d9a87f96de040e0ce6921b83fe (diff) |
Non-IM Contact:
- Minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/timer.cpp')
-rw-r--r-- | plugins/Non-IM Contact/src/timer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Non-IM Contact/src/timer.cpp b/plugins/Non-IM Contact/src/timer.cpp index b7851eb1d1..f67610cae2 100644 --- a/plugins/Non-IM Contact/src/timer.cpp +++ b/plugins/Non-IM Contact/src/timer.cpp @@ -8,7 +8,7 @@ static UINT_PTR timerId = 0; // Returns : void
// Description : called when the timer interval occurs
//=====================================================
-
+//
void timerFunc(void*)
{
char text[512], fn[16], szFileName[MAX_PATH], temp[MAX_PATH];
@@ -24,7 +24,7 @@ void timerFunc(void*) /* update the web pages*/
for (int i = 0;; i++) {
mir_snprintf(fn, "fn%d", i);
- if (!db_get_static(NULL, MODNAME, fn, text, _countof(text)))
+ if (db_get_static(NULL, MODNAME, fn, text, _countof(text)))
break;
if (!strncmp("http://", text, mir_strlen("http://")) || !strncmp("https://", text, mir_strlen("https://"))) {
@@ -43,7 +43,7 @@ void timerFunc(void*) for (MCONTACT hContact = db_find_first(MODNAME); hContact; hContact = db_find_next(hContact, MODNAME)) {
int timer = db_get_w(hContact, MODNAME, "Timer", 15);
if (timer && !(timerCount % timer))
- if (db_get_static(hContact, MODNAME, "Name", text, _countof(text)))
+ if (!db_get_static(hContact, MODNAME, "Name", text, _countof(text)))
replaceAllStrings(hContact);
}
}
@@ -60,7 +60,7 @@ void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD) // Returns : int
// Description : starts the timer
//=====================================================
-
+//
int startTimer(int interval)
{
timerId = SetTimer(NULL, 0, interval, timerProc);
@@ -73,7 +73,7 @@ int startTimer(int interval) // Returns : int
// Description : stops the timer
//=====================================================
-
+//
int killTimer()
{
if (timerId != 0) {
|