summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-11-11 19:25:46 -0500
committerPatrick Griffis <tingping@tingping.se>2016-11-11 19:27:57 -0500
commit241dd69b081779a77718763561a779cdffcaf11f (patch)
treec9ee1ac451506f8b17efbf1b5b98cd97fe19aee5 /src/common/inbound.c
parent539949973c484f14d40f1886d67ec09df057315c (diff)
Further tab color improvements
- Combine the three properties into a single one
- Finally fully fix the handling with plugins handling events

TODO: Look into lastact handling of these, seems wrong
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index aa87cfab..fae0fd34 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -316,7 +316,7 @@ is_hilight (char *from, char *text, session *sess, server *serv)
 		g_free (text);
 		if (sess != current_tab)
 		{
-			sess->nick_said = TRUE;
+			sess->tab_state |= TAB_STATE_NEW_HILIGHT;
 			lastact_update (sess);
 		}
 		return 1;
@@ -373,14 +373,9 @@ inbound_action (session *sess, char *chan, char *from, char *ip, char *text,
 	if (sess != current_tab)
 	{
 		if (fromme)
-		{
-			sess->msg_said = FALSE;
-			sess->new_data = TRUE;
-		} else
-		{
-			sess->msg_said = TRUE;
-			sess->new_data = FALSE;
-		}
+			sess->tab_state |= TAB_STATE_NEW_DATA;
+		else
+			sess->tab_state |= TAB_STATE_NEW_MSG;
 		lastact_update (sess);
 	}
 
@@ -448,8 +443,7 @@ inbound_chanmsg (server *serv, session *sess, char *chan, char *from,
 
 	if (sess != current_tab)
 	{
-		sess->msg_said = TRUE;
-		sess->new_data = FALSE;
+		sess->tab_state |= TAB_STATE_NEW_MSG;
 		lastact_update (sess);
 	}