Fix kicknorejoin not showing the channel name properly in errors.

Closes #1775.
This commit is contained in:
Sadie Powell 2020-04-14 00:23:09 +01:00
parent 31897d26f2
commit c506023c5a

View 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;
}
}