summaryrefslogtreecommitdiff
path: root/include/modes/cmode_v.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modes/cmode_v.h')
-rw-r--r--include/modes/cmode_v.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/include/modes/cmode_v.h b/include/modes/cmode_v.h
index a1d40ddc4..75420a6d5 100644
--- a/include/modes/cmode_v.h
+++ b/include/modes/cmode_v.h
@@ -1 +1,34 @@
-/* +------------------------------------+ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * * InspIRCd: (C) 2002-2007 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 +v */ class ModeChannelVoice : public ModeHandler { private: public: ModeChannelVoice(InspIRCd* Instance); ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding); std::string AddVoice(userrec *user,const char *dest,chanrec *chan,int status); std::string DelVoice(userrec *user,const char *dest,chanrec *chan,int status); ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string &parameter); unsigned int GetPrefixRank(); void RemoveMode(userrec* user); void RemoveMode(chanrec* channel); }; \ No newline at end of file
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2007 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 +v
+ */
+class ModeChannelVoice : public ModeHandler
+{
+ private:
+ public:
+ ModeChannelVoice(InspIRCd* Instance);
+ ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);
+ std::string AddVoice(userrec *user,const char *dest,chanrec *chan,int status);
+ std::string DelVoice(userrec *user,const char *dest,chanrec *chan,int status);
+ ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string &parameter);
+ unsigned int GetPrefixRank();
+ void RemoveMode(userrec* user);
+ void RemoveMode(chanrec* channel);
+};
+