]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/umode_w.cpp
Add config <options:disablehmac> to support disabling of HMAC, and tidy up to detect...
[user/henk/code/inspircd.git] / src / modes / umode_w.cpp
index f9608bf0ba04346f14b26872984c819aa10ec12e..383c91f6ef1f5e6a179d568a42141e41bd6e6e23 100644 (file)
@@ -31,9 +31,16 @@ ModeAction ModeUserWallops::OnModeChange(userrec* source, userrec* dest, chanrec
        if (dest->modes[UM_WALLOPS] != adding)
        {
                dest->modes[UM_WALLOPS] = adding;
+               this->count += (adding ? 1: -1);
                return MODEACTION_ALLOW;
        }
 
        /* Allow the change */
        return MODEACTION_DENY;
 }
+
+unsigned int ModeUserWallops::GetCount()
+{
+       return count;
+}
+