Merge pull request #448 from TingPing/awaynotify2

Add away-notify support
This commit is contained in:
TingPing
2013-04-03 12:12:26 -07:00
6 changed files with 37 additions and 2 deletions

View File

@@ -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)
{