summaryrefslogtreecommitdiff
path: root/src/modules/m_autoop.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-02-18 18:03:46 +0000
committerSadie Powell <sadie@witchery.services>2020-02-18 18:56:14 +0000
commit042617e97f00c840bb740b0279bf921f4a6cbd01 (patch)
tree660a8cea1c5c87f4720f114052624440c7857746 /src/modules/m_autoop.cpp
parentdf17d47b6a17ee6214f7f501e3b9d73cb8acd36e (diff)
Add enum constants for list mode numerics.
Diffstat (limited to 'src/modules/m_autoop.cpp')
-rw-r--r--src/modules/m_autoop.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp
index 152e9d679..e1042c22b 100644
--- a/src/modules/m_autoop.cpp
+++ b/src/modules/m_autoop.cpp
@@ -24,13 +24,18 @@
#include "inspircd.h"
#include "listmode.h"
-/** Handles +w channel mode
- */
+enum
+{
+ // InspIRCd-specific.
+ RPL_ACCESSLIST = 910,
+ RPL_ENDOFACCESSLIST = 911
+};
+
class AutoOpList : public ListModeBase
{
public:
AutoOpList(Module* Creator)
- : ListModeBase(Creator, "autoop", 'w', "End of Channel Access List", 910, 911, true)
+ : ListModeBase(Creator, "autoop", 'w', "End of Channel Access List", RPL_ACCESSLIST, RPL_ENDOFACCESSLIST, true)
{
ranktoset = ranktounset = OP_VALUE;
syntax = "<prefix>:<mask>";