diff options
| author | 2018-08-14 19:18:15 +0100 | |
|---|---|---|
| committer | 2018-08-14 19:31:26 +0100 | |
| commit | a69f543be3bb6df77bfc19eaadc313d405ec2d45 (patch) | |
| tree | 3a8620f14ea20715ceec71df828a1a76428314b9 /src/modules/m_joinflood.cpp | |
| parent | Convert CLONES to use its own numeric and batch the replies. (diff) | |
Fix a bunch more conflicting/unnamed numerics.
Diffstat (limited to 'src/modules/m_joinflood.cpp')
| -rw-r--r-- | src/modules/m_joinflood.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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; } } |
