From c506023c5a0ba9abac4dad2d75115f71885dfc2f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 14 Apr 2020 00:23:09 +0100 Subject: Fix kicknorejoin not showing the channel name properly in errors. Closes #1775. --- src/modules/m_kicknorejoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp index 45e5889e7..cdf16a3a1 100644 --- a/src/modules/m_kicknorejoin.cpp +++ b/src/modules/m_kicknorejoin.cpp @@ -148,7 +148,7 @@ public: const KickRejoinData* data = kr.ext.get(chan); if ((data) && !invapi->IsInvited(user, chan) && (!data->canjoin(user))) { - user->WriteNumeric(ERR_UNAVAILRESOURCE, chan, InspIRCd::Format("You must wait %u seconds after being kicked to rejoin (+J is set)", data->delay)); + user->WriteNumeric(ERR_UNAVAILRESOURCE, chan->name, InspIRCd::Format("You must wait %u seconds after being kicked to rejoin (+J is set)", data->delay)); return MOD_RES_DENY; } } -- cgit v1.2.3