mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
change_nick_user_host: Send nick change notices to SNO_NCHANGE opers when change_nick_user_host is called to only change nick.
This commit is contained in:
parent
07d3283f38
commit
ae4ce45f2e
1 changed files with 7 additions and 0 deletions
|
@ -1477,12 +1477,19 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
|
|||
if(MyClient(target_p) && changed_case)
|
||||
sendto_one(target_p, ":%s!%s@%s NICK %s",
|
||||
target_p->name, target_p->username, target_p->host, nick);
|
||||
|
||||
/* TODO: send some snotes to SNO_NCHANGE/SNO_CCONN/SNO_CCONNEXT? */
|
||||
}
|
||||
else if(changed_case)
|
||||
{
|
||||
sendto_common_channels_local(target_p, NOCAPS, ":%s!%s@%s NICK :%s",
|
||||
target_p->name, target_p->username,
|
||||
target_p->host, nick);
|
||||
|
||||
sendto_realops_snomask(SNO_NCHANGE, L_ALL,
|
||||
"Nick change: From %s to %s [%s@%s]",
|
||||
target_p->name, nick,
|
||||
target_p->username, target_p->host);
|
||||
}
|
||||
|
||||
rb_strlcpy(target_p->username, user, sizeof target_p->username);
|
||||
|
|
Loading…
Reference in a new issue