]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modes/cmode_o.h
Wheee, mass commit! this adds const stafety, throwing a compile error if anyone does...
[user/henk/code/inspircd.git] / include / modes / cmode_o.h
index 4198a3f20e92b1ba741c2b060db23cafbb5492cf..f78ac8eb0d4aa0653ca3c3fc691f7093e23bfb04 100644 (file)
@@ -1 +1,34 @@
-/*       +------------------------------------+\r *       | Inspire Internet Relay Chat Daemon |\r *       +------------------------------------+\r *\r *  InspIRCd: (C) 2002-2007 InspIRCd Development Team\r * See: http://www.inspircd.org/wiki/index.php/Credits\r *\r * This program is free but copyrighted software; see\r *            the file COPYING for details.\r *\r * ---------------------------------------------------\r */\r\r#include "mode.h"\r#include "channels.h"\r\rclass InspIRCd;\r\r/** Channel mode +o\r */\rclass ModeChannelOp : public ModeHandler\r{\r private:\r public:\r   ModeChannelOp(InspIRCd* Instance);\r     ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);\r        std::string AddOp(userrec *user,const char *dest,chanrec *chan,int status);\r    std::string DelOp(userrec *user,const char *dest,chanrec *chan,int status);\r    ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string &parameter);\r      unsigned int GetPrefixRank();\r  void RemoveMode(chanrec* channel);\r     void RemoveMode(userrec* user);\r};\r\r
\ No newline at end of file
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#include "mode.h"
+#include "channels.h"
+
+class InspIRCd;
+
+/** Channel mode +o
+ */
+class ModeChannelOp : public ModeHandler
+{
+ private:
+ public:
+       ModeChannelOp(InspIRCd* Instance);
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool servermode);
+       std::string AddOp(User *user,const char *dest,Channel *chan,int status);
+       std::string DelOp(User *user,const char *dest,Channel *chan,int status);
+       ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string &parameter);
+       unsigned int GetPrefixRank();
+       void RemoveMode(Channel* channel);
+       void RemoveMode(User* user);
+};
+