diff options
author | Sadie Powell <sadie@witchery.services> | 2020-04-14 00:23:09 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-14 00:24:45 +0100 |
commit | c506023c5a0ba9abac4dad2d75115f71885dfc2f (patch) | |
tree | 925a09fe98e0a3caa3022b8fa906d52233270935 /src | |
parent | 31897d26f2ae1f0fc794a5af512dd4e81053611b (diff) |
Fix kicknorejoin not showing the channel name properly in errors.
Closes #1775.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_kicknorejoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |