From 87f5ef38db9c47f04e76578d781e067c97e7096c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Apr 2006 20:50:12 +0000 Subject: 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 --- src/mode.cpp | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/mode.cpp') 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; } -- cgit v1.2.3