summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-04-07 20:41:29 -0400
committerTingPing <tingping@tingping.se>2013-04-07 20:41:29 -0400
commited27009285d762ba35e99b9bc3d4bca2685b7fea (patch)
treea04694fa1b868326d8b6b3691437414641bb79dc /src/common/inbound.c
parent92654bdd9bb0a5a61a829b0622fdbda7d4ee7cdd (diff)
Notify away status of friends
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 58a458b0..29eaf754 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -1021,7 +1021,16 @@ inbound_away_notify (server *serv, char *nick, char *reason)
 	{
 		sess = list->data;
 		if (sess->server == serv)
+		{
 			userlist_set_away (sess, nick, reason ? TRUE : FALSE);
+			if (sess == serv->front_session && notify_is_in_list (serv, nick))
+			{
+				if (reason)
+					EMIT_SIGNAL (XP_TE_NOTIFYAWAY, sess, nick, reason, NULL, NULL, 0);
+				else
+					EMIT_SIGNAL (XP_TE_NOTIFYBACK, sess, nick, NULL, NULL, NULL, 0);
+			}
+		}
 		list = list->next;
 	}
 }