]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/umode_i.cpp
Small api change with wide reaching effects in modules - Allows modification of whats...
[user/henk/code/inspircd.git] / src / modes / umode_i.cpp
index 73d7293a8a133c808da86ea188ff1a4028c7593c..5a93273757e0a7e7f8323f5e31e9c1404149ab92 100644 (file)
@@ -31,9 +31,15 @@ ModeAction ModeUserInvisible::OnModeChange(userrec* source, userrec* dest, chanr
        if (dest->modes[UM_INVISIBLE] != adding)
        {
                dest->modes[UM_INVISIBLE] = adding;
+               this->count += (adding ? 1: -1);
                return MODEACTION_ALLOW;
        }
 
        /* Allow the change */
        return MODEACTION_DENY;
 }
+
+unsigned int ModeUserInvisible::GetCount()
+{
+       return count;
+}