]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_s.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modes / cmode_s.cpp
index 16c446eec874525520618dad2de77e0b3ffe06e4..486520899856faa44323595079980d20a0abdb64 100644 (file)
@@ -1,19 +1,23 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #include "inspircd.h"
 #include "mode.h"
 #include "channels.h"
 #include "users.h"
+#include "modes/cmode_s.h"
 
-class ModeChannelSecret : public ModeHandler
+ModeChannelSecret::ModeChannelSecret() : SimpleChannelModeHandler(NULL, 's')
 {
- public:
-       ModeChannelSecret() : ModeHandler('s', 0, 0, 0, MODETYPE_CHANNEL, false)
-       {
-       }
-
-       ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
-       {
-               channel->modes[CM_SECRET] = adding;
-               return MODEACTION_ALLOW;
-       }
-};
+}