Send away-notify on host change fake quit

This commit is contained in:
Sam Dodrill 2013-10-10 09:53:39 -07:00
parent 8a3ac022ae
commit 7abfc13b92
1 changed files with 7 additions and 0 deletions

View File

@ -1603,6 +1603,13 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
target_p->host, nick);
}
//Needed check for away-notify
if(target_p->user->away != NULL)
{
sendto_common_channels_local_butone(target_p, CLICAP_AWAY_NOTIFY, ":%s!%s@%s AWAY :%s",
target_p->name, target_p->username, host, target_p->user->away);
}
rb_strlcpy(target_p->username, user, sizeof target_p->username);
rb_strlcpy(target_p->host, host, sizeof target_p->host);