summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_miranda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Variables/src/parse_miranda.cpp')
-rw-r--r--plugins/Variables/src/parse_miranda.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp
index dd1cc7a662..4b71d307d8 100644
--- a/plugins/Variables/src/parse_miranda.cpp
+++ b/plugins/Variables/src/parse_miranda.cpp
@@ -270,11 +270,7 @@ static TCHAR* parseLastSeenDate(ARGUMENTSINFO *ai)
szFormat = ai->targv[2];
SYSTEMTIME lsTime = { 0 };
- char *szModule = CEX_MODULE;
- lsTime.wYear = db_get_w(hContact, szModule, "Year", 0);
- if (lsTime.wYear == 0)
- szModule = SEEN_MODULE;
-
+ char *szModule = SEEN_MODULE;
lsTime.wYear = db_get_w(hContact, szModule, "Year", 0);
if (lsTime.wYear == 0)
return NULL;
@@ -328,11 +324,7 @@ static TCHAR* parseLastSeenTime(ARGUMENTSINFO *ai)
szFormat = ai->targv[2];
SYSTEMTIME lsTime = { 0 };
- char *szModule = CEX_MODULE;
- lsTime.wYear = db_get_w(hContact, szModule, "Year", 0);
- if (lsTime.wYear == 0)
- szModule = SEEN_MODULE;
-
+ char *szModule = SEEN_MODULE;
lsTime.wYear = db_get_w(hContact, szModule, "Year", 0);
if (lsTime.wYear == 0)
return NULL;
@@ -378,13 +370,9 @@ static TCHAR* parseLastSeenStatus(ARGUMENTSINFO *ai)
mir_free(ci.hContacts);
return NULL;
}
- char *szModule = CEX_MODULE;
+ char *szModule = SEEN_MODULE;
int status = db_get_w(hContact, szModule, "Status", 0);
if (status == 0)
- szModule = SEEN_MODULE;
-
- status = db_get_w(hContact, szModule, "Status", 0);
- if (status == 0)
return NULL;
TCHAR *szStatus = (TCHAR*)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)status, GSMDF_TCHAR);