diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-12-18 16:32:22 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-12-18 16:32:22 +0100 |
commit | a98d2f5086f3ac27f5d311cb0ac5307dce85ed4f (patch) | |
tree | 0d15004f8fe2ec2700bc1953d3f4e178fd0fe44b | |
parent | ba0802d8a8b173a559f149fefe9cd2b52a962c84 (diff) |
m_auditorium Switch to SimpleChannelModeHandler
-rw-r--r-- | src/modules/m_auditorium.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 0adfe77aa..502a9fb9f 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -22,21 +22,13 @@ #include "inspircd.h" -class AuditoriumMode : public ModeHandler +class AuditoriumMode : public SimpleChannelModeHandler { public: - AuditoriumMode(Module* Creator) : ModeHandler(Creator, "auditorium", 'u', PARAM_NONE, MODETYPE_CHANNEL) + AuditoriumMode(Module* Creator) : SimpleChannelModeHandler(Creator, "auditorium", 'u') { levelrequired = OP_VALUE; } - - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) - { - if (channel->IsModeSet(this) == adding) - return MODEACTION_DENY; - channel->SetMode(this, adding); - return MODEACTION_ALLOW; - } }; class ModuleAuditorium : public Module |