]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/umode_i.cpp
Finally apply my patch simplifying RSQUIT. Fixes bug #452, reported by Mark. This...
[user/henk/code/inspircd.git] / src / modes / umode_i.cpp
index 60ca4955ff10ce0b0b5f3f2f1690b7610d7af54b..493687ea748875bf3e02846259b1f27af6e20ea6 100644 (file)
@@ -1,3 +1,16 @@
+/*       +------------------------------------+
+ *       | 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 "inspircd.h"
 #include "mode.h"
 #include "channels.h"
@@ -8,7 +21,7 @@ ModeUserInvisible::ModeUserInvisible(InspIRCd* Instance) : ModeHandler(Instance,
 {
 }
 
-ModeAction ModeUserInvisible::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
+ModeAction ModeUserInvisible::OnModeChange(User* source, User* dest, Channel*, std::string&, bool adding, bool servermode)
 {
        /* Only opers can change other users modes */
        if ((source != dest) && (!*source->oper))
@@ -24,3 +37,8 @@ ModeAction ModeUserInvisible::OnModeChange(userrec* source, userrec* dest, chanr
        /* Allow the change */
        return MODEACTION_DENY;
 }
+
+unsigned int ModeUserInvisible::GetCount()
+{
+       return count;
+}