0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-03 17:28:18 +02: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:
William Pitcock 2011-07-02 19:52:12 -05:00
parent 45ed883584
commit 0351022738

View file

@ -187,7 +187,7 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
* safety --anfl
*/
if(target_p == exist_p)
return 0;
goto doit;
if(MyClient(exist_p))
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);
}
doit:
newts = atol(parv[3]);
/* timestamp is older than 15mins, ignore it */