summaryrefslogtreecommitdiff
path: root/src/modes
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-17 16:16:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-17 16:16:49 +0000
commit985c2bd1e6ea0bba467143406b83ba4a9f77fce1 (patch)
treea86d30051ed1f3df98bcc36da36f059f3ea74408 /src/modes
parente9b7d71c557e2bafedaf4cd2993242e3c17f6f8e (diff)
Add OnParameterMissing to modehandler, called when the mode handler should have a parameter, but the parser found none
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10149 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes')
-rw-r--r--src/modes/umode_s.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modes/umode_s.cpp b/src/modes/umode_s.cpp
index 3a70161d5..dde0cb15d 100644
--- a/src/modes/umode_s.cpp
+++ b/src/modes/umode_s.cpp
@@ -51,3 +51,9 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Chan
return MODEACTION_DENY;
}
+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 +*'.",
+ user->nick.c_str());
+}
+