1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 00:26:38 +02:00

Don't unset modes which have no privilege associated with them

This commit is contained in:
Adam
2015-09-06 16:00:32 -04:00
parent 3b647b0740
commit c007b829f7
2 changed files with 2 additions and 10 deletions
-9
View File
@@ -1055,15 +1055,6 @@ class ProtoInspIRCd20 : public Module
return EVENT_CONTINUE;
}
EventReturn OnChannelModeUnset(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_override
{
if ((setter.GetUser() && setter.GetUser()->server == Me) || setter.GetServer() == Me || !setter.GetServer())
if (mode->name == "OPERPREFIX")
c->SetMode(c->ci->WhoSends(), mode, param, false);
return EVENT_CONTINUE;
}
};
MODULE_INIT(ProtoInspIRCd20)