1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 11:03:14 +02:00

Replace OnChannelUnban with an IRCDProto function.

This was added for (and is only used for) for unbanning users on
UnrealIRCd which is an IRCd protocol function so it should be in
IRCDProto.
This commit is contained in:
Sadie Powell
2024-02-27 13:38:20 +00:00
parent b5b3c74477
commit 9c80f9e34e
4 changed files with 26 additions and 17 deletions
+6 -5
View File
@@ -35,6 +35,7 @@ public:
CanSQLineChannel = true;
CanSZLine = true;
CanSVSHold = true;
CanClearBans = true;
CanSVSLogout = true;
CanCertFP = true;
RequiresID = true;
@@ -438,6 +439,11 @@ private:
return true;
}
void SendClearBans(const MessageSource &user, Channel *c, User* u) override
{
Uplink::Send(user, "SVS2MODE", c->name, "-b", u->GetUID());
}
};
class UnrealExtBan
@@ -1805,11 +1811,6 @@ public:
return EVENT_CONTINUE;
}
void OnChannelUnban(User *u, ChannelInfo *ci) override
{
Uplink::Send(ci->WhoSends(), "SVS2MODE", ci->c->name, "-b", u->GetUID());
}
};
MODULE_INIT(ProtoUnreal)