diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-09 20:50:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-09 20:50:12 +0000 |
commit | 87f5ef38db9c47f04e76578d781e067c97e7096c (patch) | |
tree | 85a4bf656dfc36d05b930cbb1894cee888f2a60e /src/mode.cpp | |
parent | 772d6f16c0c474d2b66121c618c0273c26ca574e (diff) |
Om's way is better and lets watchers change mode parameters for the modes theyre watching
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3856 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index d61725eef..7433f4756 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -54,20 +54,6 @@ extern ServerConfig* Config; extern time_t TIME; -ModeOutput::ModeOutput(std::string parameter, ModeAction action) : par(parameter), act(action) -{ -} - -ModeAction ModeOutput::GetAction() -{ - return act; -} - -std::string& ModeOutput::GetParameter() -{ - return par; -} - ModeHandler::ModeHandler(char modeletter, int parameters, bool listmode, ModeType type, bool operonly) : mode(modeletter), n_params(parameters), list(listmode), m_type(type), oper(operonly) { } @@ -101,9 +87,9 @@ char ModeHandler::GetModeChar() return mode; } -ModeOutput ModeHandler::OnModeChange(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter, bool adding) +ModeAction ModeHandler::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) { - return ModeOutput("", MODEACTION_DENY); + return MODEACTION_DENY; } void ModeHandler::DisplayList(userrec* user, chanrec* channel) @@ -133,7 +119,7 @@ ModeType ModeWatcher::GetModeType() return m_type; } -bool ModeWatcher::BeforeMode(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter, bool adding) +bool ModeWatcher::BeforeMode(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) { return true; } |