diff options
Diffstat (limited to 'src/modes/umode_s.cpp')
-rw-r--r-- | src/modes/umode_s.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modes/umode_s.cpp b/src/modes/umode_s.cpp index 9a78f3241..36b830b91 100644 --- a/src/modes/umode_s.cpp +++ b/src/modes/umode_s.cpp @@ -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 GetCount() +{ + return count; +} |