diff options
Diffstat (limited to 'plugins/SeenPlugin/src/utils.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/utils.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index 27c20abc76..a5ccd6ef54 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -272,11 +272,13 @@ wchar_t* ParseString(wchar_t *szstring, MCONTACT hcontact) goto LBL_noData;
case 'G':
- if (!db_get_ws(hcontact, "CList", "Group", &dbv)) {
- wcsncpy(szdbsetting, dbv.pwszVal, _countof(szdbsetting));
- db_free(&dbv);
- charPtr = szdbsetting;
- goto LBL_charPtr;
+ {
+ ptrW wszGroup(Clist_GetGroup(hcontact));
+ if (wszGroup) {
+ wcsncpy_s(szdbsetting, wszGroup, _TRUNCATE);
+ charPtr = szdbsetting;
+ goto LBL_charPtr;
+ }
}
break;
|