From 1f6f1a0172884050cba8ac79c244899951eafed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 23 May 2012 13:17:15 +0000 Subject: MenuItemEx: ignoring chat rooms for lastseen and refresh git-svn-id: http://svn.miranda-ng.org/main/trunk@147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins') diff --git a/plugins/MenuItemEx/main.c b/plugins/MenuItemEx/main.c index 30e07e0511..2f7c998807 100644 --- a/plugins/MenuItemEx/main.c +++ b/plugins/MenuItemEx/main.c @@ -1175,6 +1175,7 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam ) if ( ( HANDLE )wParam == NULL || lstrcmpA( cws->szSetting, "Status" ) ) return 0; + newStatus = cws->value.wVal; oldStatus = DBGetContactSettingWord((HANDLE)wParam,"UserOnline","OldStatus2",ID_STATUS_OFFLINE ); if (oldStatus == newStatus) @@ -1183,6 +1184,10 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam ) tCurrentTime = time( NULL ); lpzProto = ( char* )CallService( MS_PROTO_GETCONTACTBASEPROTO, ( WPARAM )wParam, 0); + // ignore chat rooms + if (DBGetContactSettingByte((HANDLE)wParam, lpzProto, "ChatRoom", 0)) + return 0; + if (oldStatus == ID_STATUS_OFFLINE) { // set online timestamp for this contact, only when not set already -- cgit v1.2.3