summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 54e5bff0..f807b783 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -977,6 +977,25 @@ inbound_away (server *serv, char *nick, char *msg)
 	}
 }
 
+void
+inbound_away_notify (server *serv, char *nick, char *reason)
+{
+	session *sess = NULL;
+	GSList *list;
+
+	list = sess_list;
+	while (list)
+	{
+		sess = list->data;
+		if (sess->server == serv)
+			if (!reason)
+				userlist_set_away (sess, nick, FALSE);
+			else
+				userlist_set_away (sess, nick, TRUE);
+		list = list->next;
+	}
+}
+
 int
 inbound_nameslist_end (server *serv, char *chan)
 {