Clean up away-notify patch

This commit is contained in:
TingPing
2013-03-12 23:54:55 -04:00
parent bf0fb9f327
commit eb5313f850
2 changed files with 5 additions and 7 deletions

View File

@@ -988,10 +988,7 @@ inbound_away_notify (server *serv, char *nick, char *reason)
{
sess = list->data;
if (sess->server == serv)
if (!reason)
userlist_set_away (sess, nick, FALSE);
else
userlist_set_away (sess, nick, TRUE);
userlist_set_away (sess, nick, reason ? TRUE : FALSE);
list = list->next;
}
}