src/s_user.c: don't send fake MODE for clients who have CHGHOST

Reported-by: Samuel Hoffman <samuelhoffman2@gmail.com>
This commit is contained in:
Aaron Jones 2017-12-17 03:19:52 +00:00
parent 9d80b087cd
commit 412263854f
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -1461,10 +1461,9 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
target_p->info);
if(*mode)
sendto_channel_local_butone(target_p, ALL_MEMBERS, chptr,
":%s MODE %s +%s %s",
target_p->servptr->name,
chptr->chname, mode, modeval);
sendto_channel_local_with_capability_butone(target_p, ALL_MEMBERS,
NOCAPS, CLICAP_CHGHOST, chptr, ":%s MODE %s +%s %s",
target_p->servptr->name, chptr->chname, mode, modeval);
*modeval = '\0';
}