diff options
-rw-r--r-- | plugins/MenuItemEx/main.c | 5 |
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
|