mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 01:30:19 +00:00
Merge pull request #448 from TingPing/awaynotify2
Add away-notify support
This commit is contained in:
@@ -986,6 +986,22 @@ 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)
|
||||
userlist_set_away (sess, nick, reason ? TRUE : FALSE);
|
||||
list = list->next;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
inbound_nameslist_end (server *serv, char *chan)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user