From 7abfc13b92909fa11af71d749e195659197797a3 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Thu, 10 Oct 2013 09:53:39 -0700 Subject: [PATCH] Send away-notify on host change fake quit --- src/s_user.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/s_user.c b/src/s_user.c index 3b3525f..1ca7ac1 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -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);