diff options
Diffstat (limited to 'src/modules/m_kicknorejoin.cpp')
-rw-r--r-- | src/modules/m_kicknorejoin.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp index 67711f766..7d0e7fb89 100644 --- a/src/modules/m_kicknorejoin.cpp +++ b/src/modules/m_kicknorejoin.cpp @@ -25,6 +25,13 @@ #include "inspircd.h" +enum +{ + // From RFC 2182. + ERR_UNAVAILRESOURCE = 437 +}; + + class KickRejoinData { struct KickedUser @@ -135,7 +142,7 @@ public: const KickRejoinData* data = kr.ext.get(chan); if ((data) && (!data->canjoin(user))) { - user->WriteNumeric(ERR_DELAYREJOIN, chan, InspIRCd::Format("You must wait %u seconds after being kicked to rejoin (+J)", data->delay)); + user->WriteNumeric(ERR_UNAVAILRESOURCE, chan, InspIRCd::Format("You must wait %u seconds after being kicked to rejoin (+J)", data->delay)); return MOD_RES_DENY; } } |