src/s_user: Prevent desync of clients on CHGHOST

This commit is contained in:
Sam Dodrill 2014-04-29 13:18:39 -07:00
parent 2a8868cfe3
commit 9a90d0d80e
1 changed files with 2 additions and 13 deletions

View File

@ -1572,19 +1572,8 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
*mptr = '\0';
struct Client *source_p;
source_p = find_named_client(nick);
sendto_channel_local_with_capability(ALL_MEMBERS, NOCAPS,
CLICAP_EXTENDED_JOIN, chptr, ":%s!%s@%s JOIN %s",
source_p->name, source_p->username, host,
chptr->chname);
sendto_channel_local_with_capability(ALL_MEMBERS,
CLICAP_EXTENDED_JOIN, NOCAPS, chptr, ":%s!%s@%s JOIN %s %s %ld :%s",
source_p->name, source_p->username, source_p->host,
chptr->chname, EmptyString(source_p->user->suser) ? "*" : source_p->user->suser,
source_p->tsinfo, source_p->info);
sendto_channel_local_butone(target_p, ALL_MEMBERS, chptr, ":%s!%s@%s JOIN :%s",
nick, user, host, chptr->chname);
if(*mode)
sendto_channel_local_butone(target_p, ALL_MEMBERS, chptr,