From 401fcf14aa64cdbd72ca0b0149438d35372f8e97 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Wed, 12 Feb 2020 00:55:29 +0100 Subject: [PATCH] Fix forced nick change not showing if you were not in any channels. Eg with anope with the KILL option turned ON, a minute after taking a registered a nick. Very similar to c9b88343e2b6242e6571b31e637cfe96396452d3 which was fixed in 5.0.0-beta1 for non-forced nick changes. --- src/modules/svsnick.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/svsnick.c b/src/modules/svsnick.c index 7be1746cb..92618fb51 100644 --- a/src/modules/svsnick.c +++ b/src/modules/svsnick.c @@ -96,6 +96,7 @@ CMD_FUNC(cmd_svsnick) /* no 'recv_mtags' here, we do not inherit from SVSNICK but generate a new NICK event */ new_message(acptr, NULL, &mtags); sendto_local_common_channels(acptr, NULL, 0, mtags, ":%s NICK :%s", acptr->name, parv[2]); + sendto_one(acptr, mtags, ":%s NICK :%s", acptr->name, parv[2]); sendto_server(NULL, 0, 0, mtags, ":%s NICK %s :%ld", acptr->id, parv[2], atol(parv[3])); free_message_tags(mtags);