mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 02:10:27 +00:00
Send NICK commands with prefix of (target) user
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).
This commit is contained in:
parent
f2455cbe33
commit
757f3497bc
@ -971,7 +971,7 @@ Change_Nick(CLIENT *Origin, CLIENT *Target, char *NewNick, bool InformClient)
|
||||
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user