mirror of
https://github.com/anope/anope.git
synced 2026-07-02 01:46:39 +02:00
Replace anope_{final,override} with their C++11 equivalent.
This commit is contained in:
+26
-26
@@ -43,25 +43,25 @@ class RatboxProto : public IRCDProto
|
||||
MaxModes = 4;
|
||||
}
|
||||
|
||||
void SendSVSKillInternal(const MessageSource &source, User *targ, const Anope::string &reason) anope_override { hybrid->SendSVSKillInternal(source, targ, reason); }
|
||||
void SendGlobalNotice(BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override { hybrid->SendGlobalNotice(bi, dest, msg); }
|
||||
void SendGlobalPrivmsg(BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override { hybrid->SendGlobalPrivmsg(bi, dest, msg); }
|
||||
void SendSGLine(User *u, const XLine *x) anope_override { hybrid->SendSGLine(u, x); }
|
||||
void SendSGLineDel(const XLine *x) anope_override { hybrid->SendSGLineDel(x); }
|
||||
void SendAkill(User *u, XLine *x) anope_override { hybrid->SendAkill(u, x); }
|
||||
void SendAkillDel(const XLine *x) anope_override { hybrid->SendAkillDel(x); }
|
||||
void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override { hybrid->SendJoin(user, c, status); }
|
||||
void SendServer(const Server *server) anope_override { hybrid->SendServer(server); }
|
||||
void SendModeInternal(const MessageSource &source, User *u, const Anope::string &buf) anope_override { hybrid->SendModeInternal(source, u, buf); }
|
||||
void SendChannel(Channel *c) anope_override { hybrid->SendChannel(c); }
|
||||
bool IsIdentValid(const Anope::string &ident) anope_override { return hybrid->IsIdentValid(ident); }
|
||||
void SendSVSKillInternal(const MessageSource &source, User *targ, const Anope::string &reason) override { hybrid->SendSVSKillInternal(source, targ, reason); }
|
||||
void SendGlobalNotice(BotInfo *bi, const Server *dest, const Anope::string &msg) override { hybrid->SendGlobalNotice(bi, dest, msg); }
|
||||
void SendGlobalPrivmsg(BotInfo *bi, const Server *dest, const Anope::string &msg) override { hybrid->SendGlobalPrivmsg(bi, dest, msg); }
|
||||
void SendSGLine(User *u, const XLine *x) override { hybrid->SendSGLine(u, x); }
|
||||
void SendSGLineDel(const XLine *x) override { hybrid->SendSGLineDel(x); }
|
||||
void SendAkill(User *u, XLine *x) override { hybrid->SendAkill(u, x); }
|
||||
void SendAkillDel(const XLine *x) override { hybrid->SendAkillDel(x); }
|
||||
void SendJoin(User *user, Channel *c, const ChannelStatus *status) override { hybrid->SendJoin(user, c, status); }
|
||||
void SendServer(const Server *server) override { hybrid->SendServer(server); }
|
||||
void SendModeInternal(const MessageSource &source, User *u, const Anope::string &buf) override { hybrid->SendModeInternal(source, u, buf); }
|
||||
void SendChannel(Channel *c) override { hybrid->SendChannel(c); }
|
||||
bool IsIdentValid(const Anope::string &ident) override { return hybrid->IsIdentValid(ident); }
|
||||
|
||||
void SendGlobopsInternal(const MessageSource &source, const Anope::string &buf) anope_override
|
||||
void SendGlobopsInternal(const MessageSource &source, const Anope::string &buf) override
|
||||
{
|
||||
UplinkSocket::Message(source) << "OPERWALL :" << buf;
|
||||
}
|
||||
|
||||
void SendSQLine(User *, const XLine *x) anope_override
|
||||
void SendSQLine(User *, const XLine *x) override
|
||||
{
|
||||
/* Calculate the time left before this would expire, capping it at 2 days */
|
||||
time_t timeleft = x->expires - Anope::CurTime;
|
||||
@@ -72,12 +72,12 @@ class RatboxProto : public IRCDProto
|
||||
UplinkSocket::Message(FindIntroduced()) << "ENCAP * RESV " << timeleft << " " << x->mask << " 0 :" << x->GetReason();
|
||||
}
|
||||
|
||||
void SendSQLineDel(const XLine *x) anope_override
|
||||
void SendSQLineDel(const XLine *x) override
|
||||
{
|
||||
UplinkSocket::Message(Config->GetClient("OperServ")) << "ENCAP * UNRESV " << x->mask;
|
||||
}
|
||||
|
||||
void SendConnect() anope_override
|
||||
void SendConnect() override
|
||||
{
|
||||
UplinkSocket::Message() << "PASS " << Config->Uplinks[Anope::CurrentUplink].password << " TS 6 :" << Me->GetSID();
|
||||
/*
|
||||
@@ -104,13 +104,13 @@ class RatboxProto : public IRCDProto
|
||||
UplinkSocket::Message() << "SVINFO 6 3 0 :" << Anope::CurTime;
|
||||
}
|
||||
|
||||
void SendClientIntroduction(User *u) anope_override
|
||||
void SendClientIntroduction(User *u) override
|
||||
{
|
||||
Anope::string modes = "+" + u->GetModes();
|
||||
UplinkSocket::Message(Me) << "UID " << u->nick << " 1 " << u->timestamp << " " << modes << " " << u->GetIdent() << " " << u->host << " 0 " << u->GetUID() << " :" << u->realname;
|
||||
}
|
||||
|
||||
void SendLogin(User *u, NickAlias *na) anope_override
|
||||
void SendLogin(User *u, NickAlias *na) override
|
||||
{
|
||||
if (na->nc->HasExt("UNCONFIRMED"))
|
||||
return;
|
||||
@@ -118,12 +118,12 @@ class RatboxProto : public IRCDProto
|
||||
UplinkSocket::Message(Me) << "ENCAP * SU " << u->GetUID() << " " << na->nc->display;
|
||||
}
|
||||
|
||||
void SendLogout(User *u) anope_override
|
||||
void SendLogout(User *u) override
|
||||
{
|
||||
UplinkSocket::Message(Me) << "ENCAP * SU " << u->GetUID();
|
||||
}
|
||||
|
||||
void SendTopic(const MessageSource &source, Channel *c) anope_override
|
||||
void SendTopic(const MessageSource &source, Channel *c) override
|
||||
{
|
||||
BotInfo *bi = source.GetBot();
|
||||
bool needjoin = c->FindUser(bi) == NULL;
|
||||
@@ -148,7 +148,7 @@ struct IRCDMessageEncap : IRCDMessage
|
||||
IRCDMessageEncap(Module *creator) : IRCDMessage(creator, "ENCAP", 3) { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
|
||||
|
||||
// Debug: Received: :00BAAAAAB ENCAP * LOGIN Adam
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) anope_override
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) override
|
||||
{
|
||||
if (params[1] == "LOGIN" || params[1] == "SU")
|
||||
{
|
||||
@@ -172,7 +172,7 @@ struct IRCDMessageJoin : Message::Join
|
||||
{
|
||||
IRCDMessageJoin(Module *creator) : Message::Join(creator, "JOIN") { }
|
||||
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) anope_override
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) override
|
||||
{
|
||||
if (params.size() == 1 && params[0] == "0")
|
||||
return Message::Join::Run(source, params, tags);
|
||||
@@ -191,7 +191,7 @@ struct IRCDMessagePass : IRCDMessage
|
||||
{
|
||||
IRCDMessagePass(Module *creator) : IRCDMessage(creator, "PASS", 4) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
|
||||
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) anope_override
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) override
|
||||
{
|
||||
UplinkSID = params[3];
|
||||
}
|
||||
@@ -202,7 +202,7 @@ struct IRCDMessageServer : IRCDMessage
|
||||
IRCDMessageServer(Module *creator) : IRCDMessage(creator, "SERVER", 3) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
|
||||
|
||||
// SERVER hades.arpa 1 :ircd-ratbox test server
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) anope_override
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) override
|
||||
{
|
||||
// Servers other then our immediate uplink are introduced via SID
|
||||
if (params[1] != "1")
|
||||
@@ -222,7 +222,7 @@ struct IRCDMessageTBurst : IRCDMessage
|
||||
* params[2] = topic OR who set the topic
|
||||
* params[3] = topic if params[2] isn't the topic
|
||||
*/
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) anope_override
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) override
|
||||
{
|
||||
time_t topic_time = Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : Anope::CurTime;
|
||||
Channel *c = Channel::Find(params[0]);
|
||||
@@ -242,7 +242,7 @@ struct IRCDMessageUID : IRCDMessage
|
||||
IRCDMessageUID(Module *creator) : IRCDMessage(creator, "UID", 9) { SetFlag(IRCDMESSAGE_REQUIRE_SERVER); }
|
||||
|
||||
// :42X UID Adam 1 1348535644 +aow Adam 192.168.0.5 192.168.0.5 42XAAAAAB :Adam
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) anope_override
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) override
|
||||
{
|
||||
/* Source is always the server */
|
||||
User::OnIntroduce(params[0], params[4], params[5], "", params[6], source.GetServer(), params[8], params[2].is_pos_number_only() ? convertTo<time_t>(params[2]) : 0, params[3], params[7], NULL);
|
||||
|
||||
Reference in New Issue
Block a user