mirror of
https://github.com/anope/anope.git
synced 2026-06-27 22:56:38 +02:00
Store the setter and ts for all modes and try to restore them.
This is mostly for preserving channel list mode info.
This commit is contained in:
@@ -16,11 +16,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
EventReturn OnChannelModeSet(Channel *c, MessageSource &, ChannelMode *mode, const Anope::string ¶m) override
|
||||
EventReturn OnChannelModeSet(Channel *c, MessageSource &, ChannelMode *mode, const ModeData &data) override
|
||||
{
|
||||
if (mode->name == "OP" && c && c->ci && c->name.equals_ci(Config->GetModule(this).Get<const Anope::string>("helpchannel")))
|
||||
{
|
||||
User *u = User::Find(param);
|
||||
User *u = User::Find(data.value);
|
||||
|
||||
if (u && c->ci->AccessFor(u).HasPriv("OPME"))
|
||||
u->SetMode(Config->GetClient("OperServ"), "HELPOP");
|
||||
|
||||
Reference in New Issue
Block a user