summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-05-23 13:17:15 +0000
committerRobert Pösel <robyer@seznam.cz>2012-05-23 13:17:15 +0000
commit1f6f1a0172884050cba8ac79c244899951eafed2 (patch)
treec300c7cd5c472260186794f40f0373885e7076fa
parent22e8395cc5a61e11c75eb0a59e8809b0131697da (diff)
MenuItemEx: ignoring chat rooms for lastseen and refresh
git-svn-id: http://svn.miranda-ng.org/main/trunk@147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MenuItemEx/main.c5
1 files changed, 5 insertions, 0 deletions
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