diff options
author | Sadie Powell <sadie@witchery.services> | 2020-02-18 18:03:46 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-02-18 18:56:14 +0000 |
commit | 042617e97f00c840bb740b0279bf921f4a6cbd01 (patch) | |
tree | 660a8cea1c5c87f4720f114052624440c7857746 /src/coremods | |
parent | df17d47b6a17ee6214f7f501e3b9d73cb8acd36e (diff) |
Add enum constants for list mode numerics.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_channel/core_channel.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/coremods/core_channel/core_channel.h b/src/coremods/core_channel/core_channel.h index 2dd8f7feb..112cd0411 100644 --- a/src/coremods/core_channel/core_channel.h +++ b/src/coremods/core_channel/core_channel.h @@ -50,6 +50,13 @@ namespace Invite }; } +enum +{ + // From RFC 1459. + RPL_BANLIST = 367, + RPL_ENDOFBANLIST = 368 +}; + /** Handle /INVITE. */ class CommandInvite : public Command @@ -164,7 +171,7 @@ class ModeChannelBan : public ListModeBase { public: ModeChannelBan(Module* Creator) - : ListModeBase(Creator, "ban", 'b', "End of channel ban list", 367, 368, true) + : ListModeBase(Creator, "ban", 'b', "End of channel ban list", RPL_BANLIST, RPL_ENDOFBANLIST, true) { syntax = "<mask>"; } |