Now NICK commands are always generated using the prefix of the target
user, even when the nickname change has been initiated by some other
(pseudo) server or using the SVSNICK command. In this case, the prefix
of the initiator has been used, but this isn't compatible with clients
(at least weechat and irssi don't handle such NICK commands correctly).
/* Inform all servers and users (which have to know) of the new name */
if (InformClient) {
- IRC_WriteStrClientPrefix(Target, Origin, "NICK :%s", NewNick);
+ IRC_WriteStrClientPrefix(Target, Target, "NICK :%s", NewNick);
IRC_WriteStrServersPrefix(NULL, Target, "NICK :%s", NewNick);
} else
IRC_WriteStrServersPrefix(Origin, Target, "NICK :%s", NewNick);