X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_joinflood.cpp;h=aaf2662166bf43a0ff971b7a40e0594e43749927;hb=de4e4860091fe5a9a530acdb25f9a17e22323acf;hp=bd9e0ad9e23dda77748bb641d3413aa42a27c790;hpb=35b70631f0532a5828b04a8e0c02092a285f331a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index bd9e0ad9e..aaf266216 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -23,6 +23,12 @@ #include "inspircd.h" +enum +{ + // From RFC 2182. + ERR_UNAVAILRESOURCE = 437 +}; + // The number of seconds the channel will be closed for. static unsigned int duration; @@ -145,7 +151,7 @@ class ModuleJoinFlood : public Module joinfloodsettings *f = jf.ext.get(chan); if (f && f->islocked()) { - user->WriteNumeric(609, chan->name, "This channel is temporarily unavailable (+j). Please try again later."); + user->WriteNumeric(ERR_UNAVAILRESOURCE, chan->name, "This channel is temporarily unavailable (+j). Please try again later."); return MOD_RES_DENY; } }