mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
RSFNC: allow RSFNC against a target which just changes the capitalization of the nickname
this is useful for gently changing a nickname from ReTARDeDNICk to Retardednick, see ns_cleannick in atheme git.
This commit is contained in:
parent
45ed883584
commit
0351022738
1 changed files with 2 additions and 1 deletions
|
@ -187,7 +187,7 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
|
||||||
* safety --anfl
|
* safety --anfl
|
||||||
*/
|
*/
|
||||||
if(target_p == exist_p)
|
if(target_p == exist_p)
|
||||||
return 0;
|
goto doit;
|
||||||
|
|
||||||
if(MyClient(exist_p))
|
if(MyClient(exist_p))
|
||||||
sendto_one(exist_p, ":%s KILL %s :(Nickname regained by services)",
|
sendto_one(exist_p, ":%s KILL %s :(Nickname regained by services)",
|
||||||
|
@ -209,6 +209,7 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
|
||||||
exit_client(NULL, exist_p, &me, buf);
|
exit_client(NULL, exist_p, &me, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
doit:
|
||||||
newts = atol(parv[3]);
|
newts = atol(parv[3]);
|
||||||
|
|
||||||
/* timestamp is older than 15mins, ignore it */
|
/* timestamp is older than 15mins, ignore it */
|
||||||
|
|
Loading…
Reference in a new issue