summaryrefslogtreecommitdiff
path: root/include/mode.h
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 /include/mode.h
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 'include/mode.h')
-rw-r--r--include/mode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index d00ec3021..3ea4f6d06 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -232,6 +232,14 @@ class CoreExport ModeHandler : public Extensible
*/
virtual void DisplayList(User* user, Channel* channel);
+ /** In the event that the mode should be given a parameter, and no parameter was provided, this method is called.
+ * This allows you to give special information to the user, or handle this any way you like.
+ * @param user The user issuing the mode change
+ * @param dest For user mode changes, the target of the mode. For channel mode changes, NULL.
+ * @param channel For channel mode changes, the target of the mode. For user mode changes, NULL.
+ */
+ virtual void OnParameterMissing(User* user, User* dest, Channel* channel);
+
/**
* If your mode is a listmode, this method will be called to display an empty list (just the end of list numeric)
* @param user The user issuing the command