From db7a49b071134cf3deadf05ce84fa6c7c46d80bf Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 31 Aug 2008 13:00:12 +0000 Subject: Move all the parameters around AGAIN. See docs shortly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10364 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_s.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modes') 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 +*'.", -- cgit v1.2.3