diff options
author | TingPing <tingping@tingping.se> | 2013-03-12 02:21:18 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-03-12 02:21:18 -0400 |
commit | bf0fb9f3275ab245b4f8f32ed87b482000b78243 (patch) | |
tree | 0f9e1a05794109455b6baa15d73d5ade18b48411 /src/common/inbound.c | |
parent | c76dedd9b9f7a15deaac01783bab2f2da225ebd6 (diff) |
Add away-notify support
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r-- | src/common/inbound.c | 19 |
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) { |