aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_banexception.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-19 01:29:45 +0000
committerGravatar Sadie Powell2020-02-19 01:29:45 +0000
commit7bdd72f634f994dcbd9bfbc865d0087143fb748d (patch)
tree11784350f097d56704426e604fdc0009ec35afb2 /src/modules/m_banexception.cpp
parentMove FindNickOnly to UserManager. (diff)
parentBump the module ABI version. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r--src/modules/m_banexception.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index 5e2ec3aee..0511d8c73 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -27,28 +27,23 @@
#include "listmode.h"
#include "modules/isupport.h"
-/* Written by Om<om@inspircd.org>, April 2005. */
-/* Rewritten to use the listmode utility by Om, December 2005 */
-/* Adapted from m_exception, which was originally based on m_chanprotect and m_silence */
-
-// The +e channel mode takes a nick!ident@host, glob patterns allowed,
-// and if a user matches an entry on the +e list then they can join the channel, overriding any (+b) bans set on them
-// Now supports CIDR and IP addresses -- Brain
-
+enum
+{
+ // From RFC 2812.
+ RPL_EXCEPTLIST = 348,
+ RPL_ENDOFEXCEPTLIST = 349
+};
-/** Handles +e channel mode
- */
class BanException : public ListModeBase
{
public:
BanException(Module* Creator)
- : ListModeBase(Creator, "banexception", 'e', "End of Channel Exception List", 348, 349, true)
+ : ListModeBase(Creator, "banexception", 'e', "End of Channel Exception List", RPL_EXCEPTLIST, RPL_ENDOFEXCEPTLIST, true)
{
syntax = "<mask>";
}
};
-
class ModuleBanException
: public Module
, public ISupport::EventListener