]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/umode_s.cpp
Fix desync with halfop and voice when opped (this happens because we were ORing the...
[user/henk/code/inspircd.git] / src / modes / umode_s.cpp
index 9a78f3241b9644a5069dd103cdb78faca79ad118..4b3179001af415419eb14950628f1ba05720bdd8 100644 (file)
@@ -31,9 +31,15 @@ ModeAction ModeUserServerNotice::OnModeChange(userrec* source, userrec* dest, ch
        if (dest->modes[UM_SERVERNOTICE] != adding)
        {
                dest->modes[UM_SERVERNOTICE] = adding;
+               this->count += (adding ? 1: -1);
                return MODEACTION_ALLOW;
        }
 
        /* Allow the change */
        return MODEACTION_DENY;
 }
+
+unsigned int ModeUserServerNotice::GetCount()
+{
+       return count;
+}