]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_channel/core_channel.h
Fix the syntax of the MAXLIST 005 token.
[user/henk/code/inspircd.git] / src / coremods / core_channel / core_channel.h
index 096db8c0d5a8f7020096f00b87d80b465ca28587..26b23c3ea5a5c2c93fed9e02a54ba97e40bcc762 100644 (file)
@@ -1,10 +1,8 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
- *   Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
- *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
- *   Copyright (C) 2006 Craig Edwards <craigedwards@brainbox.cc>
+ *   Copyright (C) 2017-2020 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2014-2015 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -52,6 +50,14 @@ namespace Invite
        };
 }
 
+enum
+{
+       // From RFC 1459.
+       RPL_BANLIST = 367,
+       RPL_ENDOFBANLIST = 368,
+       ERR_KEYSET = 467
+};
+
 /** Handle /INVITE.
  */
 class CommandInvite : public Command
@@ -116,9 +122,11 @@ class CommandTopic : public SplitCommand
  */
 class CommandNames : public SplitCommand
 {
+ private:
        ChanModeReference secretmode;
        ChanModeReference privatemode;
        UserModeReference invisiblemode;
+       Events::ModuleEventProvider namesevprov;
 
  public:
        /** Constructor for names.
@@ -164,8 +172,9 @@ 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>";
        }
 };