summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-07-07 04:06:09 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-07-07 04:06:09 +0000
commit6eeecaada5818d8dc1f3bb98c3e0916d195e3592 (patch)
tree66f3153a84fb5e6597aebfd723f2bc3c6bcf8649 /src
parentdb3b51a5b43825317bbdd3a4f76409e7a27672dc (diff)
Remove bad check for channel op in m_auditorium, fixes bug #886
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11441 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_auditorium.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp
index 3abcdd237..fa55d108e 100644
--- a/src/modules/m_auditorium.cpp
+++ b/src/modules/m_auditorium.cpp
@@ -18,22 +18,14 @@
class AuditoriumMode : public ModeHandler
{
public:
- AuditoriumMode(InspIRCd* Instance) : ModeHandler(Instance, 'u', 0, 0, false, MODETYPE_CHANNEL, false) { }
+ AuditoriumMode(InspIRCd* Instance) : ModeHandler(Instance, 'u', 0, 0, false, MODETYPE_CHANNEL, false, 0, '@') { }
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool)
{
if (channel->IsModeSet('u') != adding)
{
- if (IS_LOCAL(source) && (channel->GetStatus(source) < STATUS_OP))
- {
- source->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :Only channel operators may %sset channel mode +u", source->nick.c_str(), channel->name.c_str(), adding ? "" : "un");
- return MODEACTION_DENY;
- }
- else
- {
- channel->SetMode('u', adding);
- return MODEACTION_ALLOW;
- }
+ channel->SetMode('u', adding);
+ return MODEACTION_ALLOW;
}
else
{