diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 4ac93491ed..dde6d762e9 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -109,11 +109,16 @@ struct CVkProto : public PROTO<CVkProto> //==== History Menus ==================================================================
- INT_PTR __cdecl SvcGetServerHistoryLast1Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast3Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast7Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast30Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast90Day(WPARAM hContact, LPARAM);
+ template <unsigned short Days>
+ INT_PTR __cdecl SvcGetServerHistoryLastNDay(WPARAM hContact, LPARAM)
+ {
+ debugLogA("CVkProto::SvcGetServerHistoryLast%dDay", Days);
+ if (!IsOnline())
+ return 0;
+ GetServerHistoryLastNDay(hContact, Days);
+ return 1;
+ }
+
INT_PTR __cdecl SvcGetAllServerHistory(WPARAM hContact, LPARAM);
void InitMenus();
void UnInitMenus();
|