Nickname changes are a global SNOTE

This commit is contained in:
Sam Dodrill 2013-10-08 10:16:52 -07:00
parent ffebe5d876
commit 3efbe7d9fa
1 changed files with 4 additions and 0 deletions

View File

@ -720,6 +720,10 @@ change_local_nick(struct Client *client_p, struct Client *source_p,
"Nick change: From %s to %s [%s@%s]",
source_p->name, nick, source_p->username, source_p->host);
sendto_server(NULL, NULL, CAP_TS6, NOCAPS,
":%s ENCAP * SNOTE n :%s Nick change: From %s to %s [%s@%s]",
me.id, me.name, source_p->name, nick, source_p->username, source_p->host);
/* send the nick change to the users channels */
sendto_common_channels_local(source_p, NOCAPS, ":%s!%s@%s NICK :%s",
source_p->name, source_p->username, source_p->host, nick);