X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodes%2Fumode_i.cpp;h=5a93273757e0a7e7f8323f5e31e9c1404149ab92;hb=ce533b67e6c58c02f25b2f26214ab9cd2c7c99b6;hp=73d7293a8a133c808da86ea188ff1a4028c7593c;hpb=a7cbd51d457a5e3b435396092bc7e2fcf79168e1;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modes/umode_i.cpp b/src/modes/umode_i.cpp index 73d7293a8..5a9327375 100644 --- a/src/modes/umode_i.cpp +++ b/src/modes/umode_i.cpp @@ -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; +}