summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/userinfo.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-29 15:54:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-29 15:54:15 +0300
commitf72431f2d07395eb2a35929ad85d28dc3a1eacee (patch)
treef22cfdceb39a4db477b868edaf2e585625869ba7 /protocols/ICQ-WIM/src/userinfo.cpp
parent0ae0ccdec97de5e60f1e37299c8858b8f4887c29 (diff)
ICQ-WIM:
- fix for interference with SeenPlugin plugin (reported by OlegVVV); - LastSeen time added to User Details;
Diffstat (limited to 'protocols/ICQ-WIM/src/userinfo.cpp')
-rw-r--r--protocols/ICQ-WIM/src/userinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/userinfo.cpp b/protocols/ICQ-WIM/src/userinfo.cpp
index 96595bca46..6cc56fefb2 100644
--- a/protocols/ICQ-WIM/src/userinfo.cpp
+++ b/protocols/ICQ-WIM/src/userinfo.cpp
@@ -37,8 +37,9 @@ static INT_PTR CALLBACK IcqDlgProc(HWND hwndDlg, UINT msg, WPARAM, LPARAM lParam
SetDlgItemTextW(hwndDlg, IDC_NICK, ppro->getMStringW(hContact, DB_KEY_ICQNICK));
SetDlgItemTextA(hwndDlg, IDC_IDLETIME, time2text(ppro->getDword(hContact, DB_KEY_IDLE)));
+ SetDlgItemTextA(hwndDlg, IDC_LASTSEEN, time2text(ppro->getDword(hContact, DB_KEY_LASTSEEN)));
SetDlgItemTextA(hwndDlg, IDC_MEMBERSINCE, time2text(ppro->getDword(hContact, DB_KEY_MEMBERSINCE)));
- SetDlgItemTextA(hwndDlg, IDC_ONLINESINCE, time2text(ppro->getDword(hContact, DB_KEY_LASTSEEN)));
+ SetDlgItemTextA(hwndDlg, IDC_ONLINESINCE, time2text(time(0) - ppro->getDword(hContact, DB_KEY_ONLINETS)));
}
break;
}