diff options
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/umode_s.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modes/umode_s.cpp b/src/modes/umode_s.cpp index dde0cb15d..d7f508066 100644 --- a/src/modes/umode_s.cpp +++ b/src/modes/umode_s.cpp @@ -51,6 +51,14 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Chan return MODEACTION_DENY; } +std::string ModeUserServerNoticeMask::GetUserParameter(User* user) +{ + std::string masks = user->FormatNoticeMasks(); + if (masks.length()) + masks = "+" + masks; + return masks; +} + void ModeUserServerNoticeMask::OnParameterMissing(User* user, User* dest, Channel* channel) { user->WriteServ("NOTICE %s :*** The user mode +s requires a parameter (server notice mask). Please provide a parameter, e.g. '+s +*'.", |