mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-23 09:42:20 -05:00
Clean up away-notify patch
This commit is contained in:
parent
bf0fb9f327
commit
eb5313f850
@ -336,14 +336,15 @@ doover:
|
|||||||
list = list->next;
|
list = list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* done them all, reset done_away_check to FALSE and start over unless we have away-notify*/
|
/* done them all, reset done_away_check to FALSE and start over unless we have away-notify */
|
||||||
if (full && !sess->server->have_awaynotify)
|
if (full)
|
||||||
{
|
{
|
||||||
list = sess_list;
|
list = sess_list;
|
||||||
while (list)
|
while (list)
|
||||||
{
|
{
|
||||||
sess = list->data;
|
sess = list->data;
|
||||||
sess->done_away_check = FALSE;
|
if (!sess->server->have_awaynotify)
|
||||||
|
sess->done_away_check = FALSE;
|
||||||
list = list->next;
|
list = list->next;
|
||||||
}
|
}
|
||||||
loop++;
|
loop++;
|
||||||
|
@ -988,10 +988,7 @@ inbound_away_notify (server *serv, char *nick, char *reason)
|
|||||||
{
|
{
|
||||||
sess = list->data;
|
sess = list->data;
|
||||||
if (sess->server == serv)
|
if (sess->server == serv)
|
||||||
if (!reason)
|
userlist_set_away (sess, nick, reason ? TRUE : FALSE);
|
||||||
userlist_set_away (sess, nick, FALSE);
|
|
||||||
else
|
|
||||||
userlist_set_away (sess, nick, TRUE);
|
|
||||||
list = list->next;
|
list = list->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user