summaryrefslogtreecommitdiff
path: root/src/modules/m_auditorium.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-12-18 16:32:22 +0100
committerAttila Molnar <attilamolnar@hush.com>2013-12-18 16:32:22 +0100
commita98d2f5086f3ac27f5d311cb0ac5307dce85ed4f (patch)
tree0d15004f8fe2ec2700bc1953d3f4e178fd0fe44b /src/modules/m_auditorium.cpp
parentba0802d8a8b173a559f149fefe9cd2b52a962c84 (diff)
m_auditorium Switch to SimpleChannelModeHandler
Diffstat (limited to 'src/modules/m_auditorium.cpp')
-rw-r--r--src/modules/m_auditorium.cpp12
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 &parameter, bool adding)
- {
- if (channel->IsModeSet(this) == adding)
- return MODEACTION_DENY;
- channel->SetMode(this, adding);
- return MODEACTION_ALLOW;
- }
};
class ModuleAuditorium : public Module