summaryrefslogtreecommitdiff
path: root/src/modes/umode_s.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-31 13:00:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-31 13:00:12 +0000
commitdb7a49b071134cf3deadf05ce84fa6c7c46d80bf (patch)
tree3b87b2d2b4866fc1fa23910c212e645e8b0608ea /src/modes/umode_s.cpp
parentc6ca1cd62688c3a012b138ad33131a700fe7bbc5 (diff)
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
Diffstat (limited to 'src/modes/umode_s.cpp')
-rw-r--r--src/modes/umode_s.cpp8
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 +*'.",