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