]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix kicknorejoin not showing the channel name properly in errors.
authorSadie Powell <sadie@witchery.services>
Mon, 13 Apr 2020 23:23:09 +0000 (00:23 +0100)
committerSadie Powell <sadie@witchery.services>
Mon, 13 Apr 2020 23:24:45 +0000 (00:24 +0100)
Closes #1775.

src/modules/m_kicknorejoin.cpp

index 45e5889e7fb4ea812feade3be4cd606760216211..cdf16a3a1bb0d90e8c636cf0f5de5f588839244c 100644 (file)
@@ -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;
                        }
                }