mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Add away-notify support
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user