summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 52c2bf8583..a9c4473b4f 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -479,13 +479,9 @@ int ProcessStatus(DBCONTACTWRITESETTING *cws, HANDLE hContact)
if (cws->value.type == DBVT_DELETED)
db_unset(smi.hContact, "UserOnline", "OldStatusMsg");
- else {
- DBCONTACTWRITESETTING cws_old;
- cws_old.szModule = "UserOnline";
- cws_old.szSetting = "OldStatusMsg";
- cws_old.value = cws->value;
- CallService(MS_DB_CONTACT_WRITESETTING, (WPARAM)smi.hContact, (LPARAM)&cws_old);
- }
+ else
+ db_set(smi.hContact, "UserOnline", "OldStatusMsg", &cws->value);
+
smi.cust = (TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)smi.hContact, GCDNF_TCHAR);
if (opt.IgnoreEmpty && (smi.compare == 2))