summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-04 13:08:22 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-04 13:08:22 +0200
commite3fc46af3ea3999ea5eea7274f038f4f03357e0e (patch)
tree5d3115566e6aa9e090a7a01f82381f988e0440da /include
parent117db983d2ce28aeb1d1e0d36879c4ea1c34f10a (diff)
Split ModeParser::DisplayListMode() into two parts
ShowListModeList() sends the list of one listmode to a user, DisplayListMode() calls it for each mode letter
Diffstat (limited to 'include')
-rw-r--r--include/mode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index cbe20ff97..17d0ec64c 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -786,6 +786,13 @@ class CoreExport ModeParser : public fakederef<ModeParser>
* @return A map of mode handlers of the given type
*/
const ModeHandlerMap& GetModes(ModeType mt) const { return modehandlersbyname[mt]; }
+
+ /** Show the list of a list mode to a user. Modules can deny the listing.
+ * @param user User to show the list to.
+ * @param chan Channel to show the list of.
+ * @param mh List mode to show the list of.
+ */
+ void ShowListModeList(User* user, Channel* chan, ModeHandler* mh);
};
inline const std::string& ModeParser::GetModeListFor004Numeric()