diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 4 | ||||
-rw-r--r-- | include/modes/umode_s.h | 1 | ||||
-rw-r--r-- | include/users.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/include/mode.h b/include/mode.h index 3ea4f6d06..467e7e2ae 100644 --- a/include/mode.h +++ b/include/mode.h @@ -211,6 +211,10 @@ class CoreExport ModeHandler : public Extensible */ char GetModeChar(); + /** For user modes, return the current parameter, if any + */ + std::string GetUserParameter(User* user); + /** * Called when a mode change for your mode occurs. * @param source Contains the user setting the mode. diff --git a/include/modes/umode_s.h b/include/modes/umode_s.h index 7463a71e5..def83d8c3 100644 --- a/include/modes/umode_s.h +++ b/include/modes/umode_s.h @@ -23,4 +23,5 @@ class ModeUserServerNoticeMask : public ModeHandler ModeUserServerNoticeMask(InspIRCd* Instance); ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode); void OnParameterMissing(User* user, User* dest, Channel* channel); + std::string GetUserParameter(User* user); }; diff --git a/include/users.h b/include/users.h index 59cd6cc6f..269dfd65f 100644 --- a/include/users.h +++ b/include/users.h @@ -716,7 +716,7 @@ class CoreExport User : public connection /** Create a displayable mode string for this users umodes * @param The mode string */ - const char* FormatModes(); + const char* FormatModes(bool showparameters = false); /** Returns true if a specific mode is set * @param m The user mode |