diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-31 13:00:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-31 13:00:12 +0000 |
commit | db7a49b071134cf3deadf05ce84fa6c7c46d80bf (patch) | |
tree | 3b87b2d2b4866fc1fa23910c212e645e8b0608ea /include | |
parent | c6ca1cd62688c3a012b138ad33131a700fe7bbc5 (diff) |
Move all the parameters around AGAIN. See docs shortly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10364 e03df62e-2008-0410-955e-edbf42e46eb7
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 |