From fb8e490d2e92130e32764b4d66cceeadf0c750d3 Mon Sep 17 00:00:00 2001 From: workaround <1584550+workaround@users.noreply.github.com> Date: Wed, 13 Oct 2021 00:14:21 +0200 Subject: [PATCH 1/2] Use channel name from buffer instead --- src/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel.c b/src/channel.c index af687ee4..15e04b15 100644 --- a/src/channel.c +++ b/src/channel.c @@ -4631,7 +4631,7 @@ int m_names(aClient *cptr, aClient *sptr, int parc, char *parv[]) if (flag) sendto_one(sptr, rpl_str(RPL_NAMREPLY), me.name, parv[0], buf); - sendto_one(sptr, rpl_str(RPL_ENDOFNAMES), me.name, parv[0], para); + sendto_one(sptr, rpl_str(RPL_ENDOFNAMES), me.name, parv[0], buf); return 0; } From e65fb6f3ca00f5aeb5ce4cb288c94cdf1232a440 Mon Sep 17 00:00:00 2001 From: workaround <1584550+workaround@users.noreply.github.com> Date: Wed, 13 Oct 2021 01:21:15 +0200 Subject: [PATCH 2/2] Update channel.c --- src/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel.c b/src/channel.c index 15e04b15..0aad4b31 100644 --- a/src/channel.c +++ b/src/channel.c @@ -4631,7 +4631,7 @@ int m_names(aClient *cptr, aClient *sptr, int parc, char *parv[]) if (flag) sendto_one(sptr, rpl_str(RPL_NAMREPLY), me.name, parv[0], buf); - sendto_one(sptr, rpl_str(RPL_ENDOFNAMES), me.name, parv[0], buf); + sendto_one(sptr, rpl_str(RPL_ENDOFNAMES), me.name, parv[0], chptr->chname); return 0; }