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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user