diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-24 20:20:56 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-24 20:20:56 +0000 |
commit | 1b33fad341b6eae6f3f377e67b91ed81b845269a (patch) | |
tree | e3eb972e370b65811c8cb11ee09fb0701d38f81b /plugins/Non-IM Contact/src/services.cpp | |
parent | f95c6ed55da24f45ea3cf15d3802d6ca686c16a2 (diff) |
Non-IM-Contacts:
-Many memory issues fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11900 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/services.cpp')
-rw-r--r-- | plugins/Non-IM Contact/src/services.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Non-IM Contact/src/services.cpp b/plugins/Non-IM Contact/src/services.cpp index 79f4020e3f..a0a3810397 100644 --- a/plugins/Non-IM Contact/src/services.cpp +++ b/plugins/Non-IM Contact/src/services.cpp @@ -79,11 +79,7 @@ int SetLCStatus(WPARAM wParam,LPARAM lParam) else if (db_get_w(NULL, MODNAME, "Timer",1))
startTimer(TIMER);
- for (MCONTACT hContact = db_find_first(MODNAME); hContact; hContact = db_find_next(hContact)) {
- char *proto = GetContactProto(hContact);
- if (proto == NULL || strcmp(proto, MODNAME))
- continue;
-
+ for (MCONTACT hContact = db_find_first(MODNAME); hContact; hContact = db_find_next(hContact,MODNAME)) {
if (LCStatus != ID_STATUS_OFFLINE)
replaceAllStrings(hContact);
@@ -101,7 +97,7 @@ int SetLCStatus(WPARAM wParam,LPARAM lParam) case ID_STATUS_AWAY:
if (db_get_b(NULL, MODNAME, "AwayAsStatus", 0) && (db_get_b(hContact, MODNAME, "AlwaysVisible",0) || (db_get_w(hContact, MODNAME, "Icon",ID_STATUS_ONLINE)==ID_STATUS_AWAY)) )
- db_set_w(hContact, MODNAME, "Status",(WORD)(WORD)db_get_w(hContact, MODNAME, "Icon",ID_STATUS_ONLINE));
+ db_set_w(hContact, MODNAME, "Status",(WORD)db_get_w(hContact, MODNAME, "Icon",ID_STATUS_ONLINE));
else if (!db_get_b(NULL, MODNAME, "AwayAsStatus", 0))
db_set_w(hContact, MODNAME, "Status",(WORD)db_get_w(hContact, MODNAME, "Icon",ID_STATUS_ONLINE));
else
|