summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mode.h8
-rw-r--r--include/modes/umode_s.h1
2 files changed, 9 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
diff --git a/include/modes/umode_s.h b/include/modes/umode_s.h
index 7c2648abc..7463a71e5 100644
--- a/include/modes/umode_s.h
+++ b/include/modes/umode_s.h
@@ -22,4 +22,5 @@ class ModeUserServerNoticeMask : public ModeHandler
public:
ModeUserServerNoticeMask(InspIRCd* Instance);
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool servermode);
+ void OnParameterMissing(User* user, User* dest, Channel* channel);
};