summaryrefslogtreecommitdiff
path: root/modules/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'modules/protocol')
-rw-r--r--modules/protocol/bahamut.cpp64
-rw-r--r--modules/protocol/inspircd-ts6.h74
-rw-r--r--modules/protocol/inspircd11.cpp66
-rw-r--r--modules/protocol/inspircd12.cpp10
-rw-r--r--modules/protocol/inspircd20.cpp12
-rw-r--r--modules/protocol/plexus.cpp64
-rw-r--r--modules/protocol/ratbox.cpp60
-rw-r--r--modules/protocol/unreal.cpp84
8 files changed, 217 insertions, 217 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp
index b83afa686..8645c7176 100644
--- a/modules/protocol/bahamut.cpp
+++ b/modules/protocol/bahamut.cpp
@@ -44,7 +44,7 @@ IRCDVar myIrcd[] = {
class BahamutIRCdProto : public IRCDProto
{
- void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) anope_override
{
if (Capab.count("TSMODE") > 0)
UplinkSocket::Message(source ? source->nick : Config->ServerName) << "MODE " << dest->name << " " << dest->creation_time << " " << buf;
@@ -52,37 +52,37 @@ class BahamutIRCdProto : public IRCDProto
UplinkSocket::Message(source ? source->nick : Config->ServerName) << "MODE " << dest->name << " " << buf;
}
- void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->nick : Config->ServerName) << "SVSMODE " << u->nick << " " << u->timestamp << " " << buf;
}
/* SVSHOLD - set */
- void SendSVSHold(const Anope::string &nick)
+ void SendSVSHold(const Anope::string &nick) anope_override
{
UplinkSocket::Message(Config->ServerName) << "SVSHOLD " << nick << " " << Config->NSReleaseTimeout << " :Being held for registered user";
}
/* SVSHOLD - release */
- void SendSVSHoldDel(const Anope::string &nick)
+ void SendSVSHoldDel(const Anope::string &nick) anope_override
{
UplinkSocket::Message(Config->ServerName) << "SVSHOLD " << nick << " 0";
}
/* SQLINE */
- void SendSQLine(User *, const XLine *x)
+ void SendSQLine(User *, const XLine *x) anope_override
{
UplinkSocket::Message() << "SQLINE " << x->Mask << " :" << x->Reason;
}
/* UNSLINE */
- void SendSGLineDel(const XLine *x)
+ void SendSGLineDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "UNSGLINE 0 :" << x->Mask;
}
/* UNSZLINE */
- void SendSZLineDel(const XLine *x)
+ void SendSZLineDel(const XLine *x) anope_override
{
/* this will likely fail so its only here for legacy */
UplinkSocket::Message() << "UNSZLINE 0 " << x->GetHost();
@@ -91,7 +91,7 @@ class BahamutIRCdProto : public IRCDProto
}
/* SZLINE */
- void SendSZLine(User *, const XLine *x)
+ void SendSZLine(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -104,37 +104,37 @@ class BahamutIRCdProto : public IRCDProto
}
/* SVSNOOP */
- void SendSVSNOOP(const Server *server, bool set)
+ void SendSVSNOOP(const Server *server, bool set) anope_override
{
UplinkSocket::Message() << "SVSNOOP " << server->GetName() << " " << (set ? "+" : "-");
}
/* SGLINE */
- void SendSGLine(User *, const XLine *x)
+ void SendSGLine(User *, const XLine *x) anope_override
{
UplinkSocket::Message() << "SGLINE " << x->Mask.length() << " :" << x->Mask << ":" << x->Reason;
}
/* RAKILL */
- void SendAkillDel(const XLine *x)
+ void SendAkillDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "RAKILL " << x->GetHost() << " " << x->GetUser();
}
/* TOPIC */
- void SendTopic(BotInfo *whosets, Channel *c)
+ void SendTopic(BotInfo *whosets, Channel *c) anope_override
{
UplinkSocket::Message(whosets->nick) << "TOPIC " << c->name << " " << c->topic_setter << " " << c->topic_time << " :" << c->topic;
}
/* UNSQLINE */
- void SendSQLineDel(const XLine *x)
+ void SendSQLineDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "UNSQLINE " << x->Mask;
}
/* JOIN - SJOIN */
- void SendJoin(User *user, Channel *c, const ChannelStatus *status)
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override
{
UplinkSocket::Message(user->nick) << "SJOIN " << c->creation_time << " " << c->name;
if (status)
@@ -155,7 +155,7 @@ class BahamutIRCdProto : public IRCDProto
}
}
- void SendAkill(User *, const XLine *x)
+ void SendAkill(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -167,22 +167,22 @@ class BahamutIRCdProto : public IRCDProto
/*
Note: if the stamp is null 0, the below usage is correct of Bahamut
*/
- void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf)
+ void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->nick : "") << "SVSKILL " << user->nick << " :" << buf;
}
- void SendBOB()
+ void SendBOB() anope_override
{
UplinkSocket::Message() << "BURST";
}
- void SendEOB()
+ void SendEOB() anope_override
{
UplinkSocket::Message() << "BURST 0";
}
- void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf)
+ void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(source->nick) << "KICK " << chan->name << " " << user->nick << " :" << buf;
@@ -190,19 +190,19 @@ class BahamutIRCdProto : public IRCDProto
UplinkSocket::Message(source->nick) << "KICK " << chan->name << " " << user->nick;
}
- void SendClientIntroduction(const User *u)
+ void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message() << "NICK " << u->nick << " 1 " << u->timestamp << " " << modes << " " << u->GetIdent() << " " << u->host << " " << u->server->GetName() << " 0 0 :" << u->realname;
}
/* SERVER */
- void SendServer(const Server *server)
+ void SendServer(const Server *server) anope_override
{
UplinkSocket::Message() << "SERVER " << server->GetName() << " " << server->GetHops() << " :" << server->GetDescription();
}
- void SendConnect()
+ void SendConnect() anope_override
{
UplinkSocket::Message() << "PASS " << Config->Uplinks[CurrentUplink]->password << " :TS";
UplinkSocket::Message() << "CAPAB SSJOIN NOQUIT BURST UNCONNECT NICKIP TSMODE TS3";
@@ -219,7 +219,7 @@ class BahamutIRCdProto : public IRCDProto
this->SendBOB();
}
- void SendChannel(Channel *c)
+ void SendChannel(Channel *c) anope_override
{
Anope::string modes = c->GetModes(true, true);
if (modes.empty())
@@ -227,13 +227,13 @@ class BahamutIRCdProto : public IRCDProto
UplinkSocket::Message() << "SJOIN " << c->creation_time << " " << c->name << " " << modes << " :";
}
- void SendLogin(User *u)
+ void SendLogin(User *u) anope_override
{
BotInfo *ns = findbot(Config->NickServ);
ircdproto->SendMode(ns, u, "+d %d", u->timestamp);
}
- void SendLogout(User *u)
+ void SendLogout(User *u) anope_override
{
BotInfo *ns = findbot(Config->NickServ);
ircdproto->SendMode(ns, u, "+d 1");
@@ -243,7 +243,7 @@ class BahamutIRCdProto : public IRCDProto
class BahamutIRCdMessage : public IRCdMessage
{
public:
- bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() > 2 && (params[0][0] == '#' || params[0][0] == '&'))
do_cmode(source, params[0], params[2], params[1]);
@@ -271,7 +271,7 @@ class BahamutIRCdMessage : public IRCdMessage
** parv[0] = new nickname
** parv[1] = hopcount
*/
- bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() != 2)
{
@@ -299,13 +299,13 @@ class BahamutIRCdMessage : public IRCdMessage
return true;
}
- bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
do_server(source, params[0], Anope::string(params[1]).is_pos_number_only() ? convertTo<unsigned>(params[1]) : 0, params[2], "");
return true;
}
- bool OnTopic(const Anope::string &, const std::vector<Anope::string> &params)
+ bool OnTopic(const Anope::string &, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 4)
return true;
@@ -322,7 +322,7 @@ class BahamutIRCdMessage : public IRCdMessage
return true;
}
- bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[1]);
time_t ts = Anope::string(params[0]).is_pos_number_only() ? convertTo<time_t>(params[0]) : 0;
@@ -480,7 +480,7 @@ class ChannelModeFlood : public ChannelModeParam
public:
ChannelModeFlood(char modeChar, bool minusNoArg) : ChannelModeParam(CMODE_FLOOD, modeChar, minusNoArg) { }
- bool IsValid(const Anope::string &value) const
+ bool IsValid(const Anope::string &value) const anope_override
{
try
{
@@ -560,7 +560,7 @@ class ProtoBahamut : public Module
pmodule_ircd_message(NULL);
}
- void OnUserNickChange(User *u, const Anope::string &)
+ void OnUserNickChange(User *u, const Anope::string &) anope_override
{
u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));
}
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h
index a13104d78..8ba879c4c 100644
--- a/modules/protocol/inspircd-ts6.h
+++ b/modules/protocol/inspircd-ts6.h
@@ -14,7 +14,7 @@ class ChannelModeFlood : public ChannelModeParam
public:
ChannelModeFlood(char modeChar, bool minusNoArg) : ChannelModeParam(CMODE_FLOOD, modeChar, minusNoArg) { }
- bool IsValid(const Anope::string &value) const
+ bool IsValid(const Anope::string &value) const anope_override
{
try
{
@@ -49,18 +49,18 @@ class InspIRCdTS6Proto : public IRCDProto
public:
- void SendAkillDel(const XLine *x)
+ void SendAkillDel(const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->Numeric) << "GLINE " << x->Mask;
}
- void SendTopic(BotInfo *whosets, Channel *c)
+ void SendTopic(BotInfo *whosets, Channel *c) anope_override
{
UplinkSocket::Message(whosets->GetUID()) << "FTOPIC " << c->name << " " << Anope::CurTime << " " << c->topic_setter << " :" << c->topic;
}
- void SendVhostDel(User *u)
+ void SendVhostDel(User *u) anope_override
{
if (u->HasMode(UMODE_CLOAK))
this->SendChgHostInternal(u->nick, u->chost);
@@ -71,7 +71,7 @@ class InspIRCdTS6Proto : public IRCDProto
this->SendChgIdentInternal(u->nick, u->GetIdent());
}
- void SendAkill(User *, const XLine *x)
+ void SendAkill(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -81,33 +81,33 @@ class InspIRCdTS6Proto : public IRCDProto
UplinkSocket::Message(u ? u->GetUID() : Config->Numeric) << "ADDLINE G " << x->GetUser() << "@" << x->GetHost() << " " << x->By << " " << Anope::CurTime << " " << timeleft << " :" << x->Reason;
}
- void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf)
+ void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->GetUID() : Config->Numeric) << "KILL " << user->GetUID() << " :" << buf;
}
- void SendNumericInternal(const Anope::string &source, int numeric, const Anope::string &dest, const Anope::string &buf)
+ void SendNumericInternal(const Anope::string &source, int numeric, const Anope::string &dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(Config->Numeric) << "PUSH " << dest << " ::" << source << " " << numeric << " " << dest << " " << buf;
}
- void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->GetUID() : Config->Numeric) << "FMODE " << dest->name << " " << dest->creation_time << " " << buf;
}
- void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->GetUID() : Config->Numeric) << "MODE " << u->GetUID() << " " << buf;
}
- void SendClientIntroduction(const User *u)
+ void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message(Config->Numeric) << "UID " << u->GetUID() << " " << u->timestamp << " " << u->nick << " " << u->host << " " << u->host << " " << u->GetIdent() << " 0.0.0.0 " << u->my_signon << " " << modes << " :" << u->realname;
}
- void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf)
+ void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(source->GetUID()) << "KICK " << chan->name << " " << user->GetUID() << " :" << buf;
@@ -116,13 +116,13 @@ class InspIRCdTS6Proto : public IRCDProto
}
/* SERVER services-dev.chatspike.net password 0 :Description here */
- void SendServer(const Server *server)
+ void SendServer(const Server *server) anope_override
{
UplinkSocket::Message("") << "SERVER " << server->GetName() << " " << Config->Uplinks[CurrentUplink]->password << " " << server->GetHops() << " " << server->GetSID() << " :" << server->GetDescription();
}
/* JOIN */
- void SendJoin(User *user, Channel *c, const ChannelStatus *status)
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override
{
UplinkSocket::Message(Config->Numeric) << "FJOIN " << c->name << " " << c->creation_time << " +" << c->GetModes(true, true) << " :," << user->GetUID();
/* Note that we can send this with the FJOIN but choose not to
@@ -148,13 +148,13 @@ class InspIRCdTS6Proto : public IRCDProto
}
/* UNSQLINE */
- void SendSQLineDel(const XLine *x)
+ void SendSQLineDel(const XLine *x) anope_override
{
UplinkSocket::Message(Config->Numeric) << "DELLINE Q " << x->Mask;
}
/* SQLINE */
- void SendSQLine(User *, const XLine *x)
+ void SendSQLine(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -165,7 +165,7 @@ class InspIRCdTS6Proto : public IRCDProto
/* Functions that use serval cmd functions */
- void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost)
+ void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override
{
if (!vIdent.empty())
this->SendChgIdentInternal(u->nick, vIdent);
@@ -173,7 +173,7 @@ class InspIRCdTS6Proto : public IRCDProto
this->SendChgHostInternal(u->nick, vhost);
}
- void SendConnect()
+ void SendConnect() anope_override
{
SendServer(Me);
UplinkSocket::Message(Config->Numeric) << "BURST";
@@ -182,7 +182,7 @@ class InspIRCdTS6Proto : public IRCDProto
}
/* SVSHOLD - set */
- void SendSVSHold(const Anope::string &nick)
+ void SendSVSHold(const Anope::string &nick) anope_override
{
BotInfo *bi = findbot(Config->NickServ);
if (bi)
@@ -190,7 +190,7 @@ class InspIRCdTS6Proto : public IRCDProto
}
/* SVSHOLD - release */
- void SendSVSHoldDel(const Anope::string &nick)
+ void SendSVSHoldDel(const Anope::string &nick) anope_override
{
BotInfo *bi = findbot(Config->NickServ);
if (bi)
@@ -198,13 +198,13 @@ class InspIRCdTS6Proto : public IRCDProto
}
/* UNSZLINE */
- void SendSZLineDel(const XLine *x)
+ void SendSZLineDel(const XLine *x) anope_override
{
UplinkSocket::Message(Config->Numeric) << "DELLINE Z " << x->GetHost();
}
/* SZLINE */
- void SendSZLine(User *, const XLine *x)
+ void SendSZLine(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -213,26 +213,26 @@ class InspIRCdTS6Proto : public IRCDProto
UplinkSocket::Message(Config->Numeric) << "ADDLINE Z " << x->GetHost() << " " << x->By << " " << Anope::CurTime << " " << timeleft <<" :" << x->Reason;
}
- void SendSVSJoin(const Anope::string &source, const Anope::string &nick, const Anope::string &chan, const Anope::string &)
+ void SendSVSJoin(const Anope::string &source, const Anope::string &nick, const Anope::string &chan, const Anope::string &) anope_override
{
User *u = finduser(nick);
BotInfo *bi = findbot(source);
UplinkSocket::Message(bi->GetUID()) << "SVSJOIN " << u->GetUID() << " " << chan;
}
- void SendSWhois(const Anope::string &, const Anope::string &who, const Anope::string &mask)
+ void SendSWhois(const Anope::string &, const Anope::string &who, const Anope::string &mask) anope_override
{
User *u = finduser(who);
UplinkSocket::Message(Config->Numeric) << "METADATA " << u->GetUID() << " swhois :" << mask;
}
- void SendBOB()
+ void SendBOB() anope_override
{
UplinkSocket::Message(Config->Numeric) << "BURST " << Anope::CurTime;
}
- void SendEOB()
+ void SendEOB() anope_override
{
UplinkSocket::Message(Config->Numeric) << "ENDBURST";
}
@@ -245,7 +245,7 @@ class InspIRCdTS6Proto : public IRCDProto
UplinkSocket::Message(source ? source->GetUID() : Config->Numeric) << "SNONOTICE A :" << buf;
}
- void SendLogin(User *u)
+ void SendLogin(User *u) anope_override
{
if (!u->Account() || u->Account()->HasFlag(NI_UNCONFIRMED))
return;
@@ -253,17 +253,17 @@ class InspIRCdTS6Proto : public IRCDProto
UplinkSocket::Message(Config->Numeric) << "METADATA " << u->GetUID() << " accountname :" << u->Account()->display;
}
- void SendLogout(User *u)
+ void SendLogout(User *u) anope_override
{
UplinkSocket::Message(Config->Numeric) << "METADATA " << u->GetUID() << " accountname :";
}
- void SendChannel(Channel *c)
+ void SendChannel(Channel *c) anope_override
{
UplinkSocket::Message(Config->Numeric) << "FJOIN " << c->name << " " << c->creation_time << " +" << c->GetModes(true, true) << " :";
}
- bool IsNickValid(const Anope::string &nick)
+ bool IsNickValid(const Anope::string &nick) anope_override
{
/* InspIRCd, like TS6, uses UIDs on collision, so... */
if (isdigit(nick[0]))
@@ -276,7 +276,7 @@ class InspIRCdTS6Proto : public IRCDProto
class InspircdIRCdMessage : public IRCdMessage
{
public:
- bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[0][0] == '#' || params[0][0] == '&')
do_cmode(source, params[0], params[2], params[1]);
@@ -301,15 +301,15 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
- virtual bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params) = 0;
+ virtual bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params) anope_override = 0;
- bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
do_nick(source, params[0], "", "", "", "", 0, "", "", "", "");
return true;
}
- bool OnPrivmsg(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnPrivmsg(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
/* Ignore privmsgs from the server, which can happen. */
if (Server::Find(source) != NULL)
@@ -326,13 +326,13 @@ class InspircdIRCdMessage : public IRCdMessage
* 3: numeric
* 4: desc
*/
- bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
do_server(source, params[0], Anope::string(params[2]).is_pos_number_only() ? convertTo<unsigned>(params[2]) : 0, params[4], params[3]);
return true;
}
- bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
@@ -347,9 +347,9 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
- virtual bool OnCapab(const Anope::string &, const std::vector<Anope::string> &) = 0;
+ virtual bool OnCapab(const Anope::string &, const std::vector<Anope::string> &) anope_override = 0;
- bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
time_t ts = Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : 0;
diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp
index d984e597e..49a90f831 100644
--- a/modules/protocol/inspircd11.cpp
+++ b/modules/protocol/inspircd11.cpp
@@ -82,17 +82,17 @@ void inspircd_cmd_pass(const Anope::string &pass)
class InspIRCdProto : public IRCDProto
{
- void SendAkillDel(const XLine *x)
+ void SendAkillDel(const XLine *x) anope_override
{
UplinkSocket::Message(Config->OperServ) << "GLINE " << x->Mask;
}
- void SendTopic(BotInfo *whosets, Channel *c)
+ void SendTopic(BotInfo *whosets, Channel *c) anope_override
{
UplinkSocket::Message(whosets->nick) << "FTOPIC " << c->name << " " << c->topic_time << " " << c->topic_setter <<" :" << c->topic;
}
- void SendVhostDel(User *u)
+ void SendVhostDel(User *u) anope_override
{
if (u->HasMode(UMODE_CLOAK))
inspircd_cmd_chghost(u->nick, u->chost);
@@ -103,7 +103,7 @@ class InspIRCdProto : public IRCDProto
inspircd_cmd_chgident(u->nick, u->GetIdent());
}
- void SendAkill(User *, const XLine *x)
+ void SendAkill(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -112,34 +112,34 @@ class InspIRCdProto : public IRCDProto
UplinkSocket::Message(Config->ServerName) << "ADDLINE G " << x->Mask << " " << x->By << " " << Anope::CurTime << " " << timeleft << " :" << x->Reason;
}
- void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf)
+ void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->nick : Config->ServerName) << "KILL " << user->nick << " :" << buf;
}
- void SendNumericInternal(const Anope::string &source, int numeric, const Anope::string &dest, const Anope::string &buf)
+ void SendNumericInternal(const Anope::string &source, int numeric, const Anope::string &dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source) << "PUSH " << dest << " ::" << source << " " << numeric << " " << dest << " " << buf;
}
- void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->nick : Config->ServerName) << "FMODE " << dest->name << " " << dest->creation_time << " " << buf;
}
- void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->nick : Config->ServerName) << "MODE " << u->nick << " " << buf;
}
- void SendClientIntroduction(const User *u)
+ void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message(Config->ServerName) << "NICK " << u->timestamp << " " << u->nick << " " << u->host << " " << u->host << " " << u->GetIdent() << " " << modes << " 0.0.0.0 :" << u->realname;
UplinkSocket::Message(u->nick) << "OPERTYPE Service";
}
- void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf)
+ void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(source->nick) << "KICK " << chan->name << " " << user->nick << " :" << buf;
@@ -148,13 +148,13 @@ class InspIRCdProto : public IRCDProto
}
/* SERVER services-dev.chatspike.net password 0 :Description here */
- void SendServer(const Server *server)
+ void SendServer(const Server *server) anope_override
{
UplinkSocket::Message(Config->ServerName) << "SERVER " << server->GetName() << " " << currentpass << " " << server->GetHops() << " :" << server->GetDescription();
}
/* JOIN */
- void SendJoin(User *user, Channel *c, const ChannelStatus *status)
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override
{
UplinkSocket::Message(user->nick) << "JOIN " << c->name << " " << c->creation_time;
if (status)
@@ -176,13 +176,13 @@ class InspIRCdProto : public IRCDProto
}
/* UNSQLINE */
- void SendSQLineDel(const XLine *x)
+ void SendSQLineDel(const XLine *x) anope_override
{
UplinkSocket::Message(Config->OperServ) << "QLINE " << x->Mask;
}
/* SQLINE */
- void SendSQLine(User *, const XLine *x)
+ void SendSQLine(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -193,7 +193,7 @@ class InspIRCdProto : public IRCDProto
/* Functions that use serval cmd functions */
- void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost)
+ void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override
{
if (!vIdent.empty())
inspircd_cmd_chgident(u->nick, vIdent);
@@ -201,7 +201,7 @@ class InspIRCdProto : public IRCDProto
inspircd_cmd_chghost(u->nick, vhost);
}
- void SendConnect()
+ void SendConnect() anope_override
{
inspircd_cmd_pass(Config->Uplinks[CurrentUplink]->password);
SendServer(Me);
@@ -224,25 +224,25 @@ class InspIRCdProto : public IRCDProto
}
/* SVSHOLD - set */
- void SendSVSHold(const Anope::string &nick)
+ void SendSVSHold(const Anope::string &nick) anope_override
{
UplinkSocket::Message(Config->OperServ) << "SVSHOLD " << nick << " " << Config->NSReleaseTimeout << "s :Being held for registered user";
}
/* SVSHOLD - release */
- void SendSVSHoldDel(const Anope::string &nick)
+ void SendSVSHoldDel(const Anope::string &nick) anope_override
{
UplinkSocket::Message(Config->OperServ) << "SVSHOLD " << nick;
}
/* UNSZLINE */
- void SendSZLineDel(const XLine *x)
+ void SendSZLineDel(const XLine *x) anope_override
{
UplinkSocket::Message(Config->OperServ) << "ZLINE " << x->GetHost();
}
/* SZLINE */
- void SendSZLine(User *, const XLine *x)
+ void SendSZLine(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -251,22 +251,22 @@ class InspIRCdProto : public IRCDProto
UplinkSocket::Message(Config->ServerName) << "ADDLINE Z " << x->GetHost() << " " << x->By << " " << Anope::CurTime << " " << timeleft << " :" << x->Reason;
}
- void SendSVSJoin(const Anope::string &source, const Anope::string &nick, const Anope::string &chan, const Anope::string &)
+ void SendSVSJoin(const Anope::string &source, const Anope::string &nick, const Anope::string &chan, const Anope::string &) anope_override
{
UplinkSocket::Message(source) << "SVSJOIN " << nick << " " << chan;
}
- void SendBOB()
+ void SendBOB() anope_override
{
UplinkSocket::Message() << "BURST " << Anope::CurTime;
}
- void SendEOB()
+ void SendEOB() anope_override
{
UplinkSocket::Message() << "ENDBURST";
}
- void SendLogin(User *u)
+ void SendLogin(User *u) anope_override
{
if (!u->Account())
return;
@@ -275,7 +275,7 @@ class InspIRCdProto : public IRCDProto
u->Account()->Extend("authenticationtoken", new ExtensibleString(svidbuf));
}
- void SendLogout(User *u)
+ void SendLogout(User *u) anope_override
{
}
};
@@ -285,7 +285,7 @@ class ChannelModeFlood : public ChannelModeParam
public:
ChannelModeFlood(char modeChar, bool minusNoArg) : ChannelModeParam(CMODE_FLOOD, modeChar, minusNoArg) { }
- bool IsValid(const Anope::string &value) const
+ bool IsValid(const Anope::string &value) const anope_override
{
try
{
@@ -302,7 +302,7 @@ class ChannelModeFlood : public ChannelModeParam
class InspircdIRCdMessage : public IRCdMessage
{
public:
- bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 2)
return true;
@@ -315,7 +315,7 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
- bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() == 8)
{
@@ -343,13 +343,13 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
- bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
do_server(source, params[0], Anope::string(params[1]).is_pos_number_only() ? convertTo<unsigned>(params[1]) : 0, params[2], "");
return true;
}
- bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
@@ -364,7 +364,7 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
- bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[0].equals_cs("START"))
{
@@ -598,7 +598,7 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
- bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
time_t ts = Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : 0;
@@ -925,7 +925,7 @@ class ProtoInspIRCd : public Module
ModuleManager::Attach(I_OnUserNickChange, this);
}
- void OnUserNickChange(User *u, const Anope::string &)
+ void OnUserNickChange(User *u, const Anope::string &) anope_override
{
u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));
}
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp
index 8fd29c7e8..e2ec39ebe 100644
--- a/modules/protocol/inspircd12.cpp
+++ b/modules/protocol/inspircd12.cpp
@@ -268,7 +268,7 @@ class InspIRCdExtBan : public ChannelModeList
public:
InspIRCdExtBan(ChannelModeName mName, char modeChar) : ChannelModeList(mName, modeChar) { }
- bool Matches(User *u, const Entry *e)
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->mask;
@@ -330,7 +330,7 @@ class Inspircd12IRCdMessage : public InspircdIRCdMessage
* 8+: modes and params -- IMPORTANT, some modes (e.g. +s) may have parameters. So don't assume a fixed position of realname!
* last: realname
*/
- bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
time_t ts = convertTo<time_t>(params[1]);
@@ -344,7 +344,7 @@ class Inspircd12IRCdMessage : public InspircdIRCdMessage
return true;
}
- bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[0].equals_cs("START"))
{
@@ -733,7 +733,7 @@ class ProtoInspIRCd : public Module
}
- void OnUserNickChange(User *u, const Anope::string &)
+ void OnUserNickChange(User *u, const Anope::string &) anope_override
{
/* InspIRCd 1.2 doesn't set -r on nick change, remove -r here. Note that if we have to set +r later
* this will cancel out this -r, resulting in no mode changes.
@@ -741,7 +741,7 @@ class ProtoInspIRCd : public Module
u->RemoveMode(findbot(Config->NickServ), UMODE_REGISTERED);
}
- void OnServerSync(Server *s)
+ void OnServerSync(Server *s) anope_override
{
if (nickserv)
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp
index 8af8a999b..619afdbde 100644
--- a/modules/protocol/inspircd20.cpp
+++ b/modules/protocol/inspircd20.cpp
@@ -52,7 +52,7 @@ static bool has_svsholdmod = false;
class InspIRCdProto : public InspIRCdTS6Proto
{
- void SendConnect()
+ void SendConnect() anope_override
{
UplinkSocket::Message() << "CAPAB START 1202";
UplinkSocket::Message() << "CAPAB CAPABILITIES :PROTOCOL=1202";
@@ -280,7 +280,7 @@ class InspIRCdExtBan : public ChannelModeList
public:
InspIRCdExtBan(ChannelModeName mName, char modeChar) : ChannelModeList(mName, modeChar) { }
- bool Matches(User *u, const Entry *e)
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->mask;
@@ -364,7 +364,7 @@ class Inspircd20IRCdMessage : public InspircdIRCdMessage
* 8+: modes and params -- IMPORTANT, some modes (e.g. +s) may have parameters. So don't assume a fixed position of realname!
* last: realname
*/
- bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
time_t ts = Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : 0;
@@ -378,7 +378,7 @@ class Inspircd20IRCdMessage : public InspircdIRCdMessage
return true;
}
- bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[0].equals_cs("START"))
{
@@ -745,12 +745,12 @@ class ProtoInspIRCd : public Module
pmodule_ircd_message(NULL);
}
- void OnUserNickChange(User *u, const Anope::string &)
+ void OnUserNickChange(User *u, const Anope::string &) anope_override
{
u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));
}
- void OnServerSync(Server *s)
+ void OnServerSync(Server *s) anope_override
{
if (nickserv)
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp
index 16e6d3753..0755ac327 100644
--- a/modules/protocol/plexus.cpp
+++ b/modules/protocol/plexus.cpp
@@ -43,40 +43,40 @@ IRCDVar myIrcd[] = {
class PlexusProto : public IRCDProto
{
- void SendGlobopsInternal(const BotInfo *source, const Anope::string &buf)
+ void SendGlobopsInternal(const BotInfo *source, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->GetUID() : Me->GetSID()) << "OPERWALL :" << buf;
}
- void SendSQLine(User *, const XLine *x)
+ void SendSQLine(User *, const XLine *x) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "RESV * " << x->Mask << " :" << x->Reason;
}
- void SendSGLineDel(const XLine *x)
+ void SendSGLineDel(const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "UNXLINE * " << x->Mask;
}
- void SendSGLine(User *, const XLine *x)
+ void SendSGLine(User *, const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "XLINE * " << x->Mask << " 0 :" << x->Reason;
}
- void SendAkillDel(const XLine *x)
+ void SendAkillDel(const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "UNKLINE * " << x->GetUser() << " " << x->GetHost();
}
- void SendSQLineDel(const XLine *x)
+ void SendSQLineDel(const XLine *x) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "UNRESV * " << x->Mask;
}
- void SendJoin(User *user, Channel *c, const ChannelStatus *status)
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "SJOIN " << c->creation_time << " " << c->name << " +" << c->GetModes(true, true) << " :" << user->GetUID();
if (status)
@@ -97,7 +97,7 @@ class PlexusProto : public IRCDProto
}
}
- void SendAkill(User *, const XLine *x)
+ void SendAkill(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -107,12 +107,12 @@ class PlexusProto : public IRCDProto
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "KLINE * " << timeleft << " " << x->GetUser() << " " << x->GetHost() << " :" << x->Reason;
}
- void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf)
+ void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->GetUID() : Me->GetSID()) << "KILL " << user->GetUID() << " :" << buf;
}
- void SendServer(const Server *server)
+ void SendServer(const Server *server) anope_override
{
if (server == Me)
UplinkSocket::Message() << "SERVER " << server->GetName() << " " << server->GetHops() << " :" << server->GetDescription();
@@ -120,12 +120,12 @@ class PlexusProto : public IRCDProto
UplinkSocket::Message(Me->GetSID()) << "SID " << server->GetName() << " " << server->GetHops() << " " << server->GetSID() << " :" << server->GetDescription();
}
- void SendForceNickChange(const User *u, const Anope::string &newnick, time_t when)
+ void SendForceNickChange(const User *u, const Anope::string &newnick, time_t when) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "ENCAP " << u->server->GetName() << " SVSNICK " << u->GetUID() << " " << u->timestamp << " " << newnick << " " << when;
}
- void SendVhostDel(User *u)
+ void SendVhostDel(User *u) anope_override
{
BotInfo *bi = findbot(Config->HostServ);
if (u->HasMode(UMODE_CLOAK))
@@ -134,14 +134,14 @@ class PlexusProto : public IRCDProto
this->SendVhost(u, u->GetIdent(), u->chost);
}
- void SendVhost(User *u, const Anope::string &ident, const Anope::string &host)
+ void SendVhost(User *u, const Anope::string &ident, const Anope::string &host) anope_override
{
if (!ident.empty())
UplinkSocket::Message(Me->GetSID()) << "ENCAP * CHGIDENT " << u->GetUID() << " " << ident;
UplinkSocket::Message(Me->GetSID()) << "ENCAP * CHGHOST " << u->GetUID() << " " << host;
}
- void SendConnect()
+ void SendConnect() anope_override
{
UplinkSocket::Message() << "PASS " << Config->Uplinks[CurrentUplink]->password << " TS 6 :" << Me->GetSID();
/* CAPAB
@@ -178,13 +178,13 @@ class PlexusProto : public IRCDProto
UplinkSocket::Message() << "SVINFO 6 5 0 :" << Anope::CurTime;
}
- void SendClientIntroduction(const User *u)
+ void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message(Me->GetSID()) << "UID " << u->nick << " 1 " << u->timestamp << " " << modes << " " << u->GetIdent() << " " << u->host << " 255.255.255.255 " << u->GetUID() << " 0 " << u->host << " :" << u->realname;
}
- void SendPartInternal(const BotInfo *bi, const Channel *chan, const Anope::string &buf)
+ void SendPartInternal(const BotInfo *bi, const Channel *chan, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(bi->GetUID()) << "PART " << chan->name << " :" << buf;
@@ -192,17 +192,17 @@ class PlexusProto : public IRCDProto
UplinkSocket::Message(bi->GetUID()) << "PART " << chan->name;
}
- void SendModeInternal(const BotInfo *bi, const Channel *dest, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const Channel *dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->GetUID() : Me->GetSID()) << "MODE " << dest->name << " " << buf;
}
- void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->GetUID() : Me->GetSID()) << "ENCAP * SVSMODE " << u->GetUID() << " " << u->timestamp << " " << buf;
}
- void SendKickInternal(const BotInfo *bi, const Channel *chan, const User *user, const Anope::string &buf)
+ void SendKickInternal(const BotInfo *bi, const Channel *chan, const User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(bi->GetUID()) << "KICK " << chan->name << " " << user->GetUID() << " :" << buf;
@@ -211,13 +211,13 @@ class PlexusProto : public IRCDProto
}
/* INVITE */
- void SendInvite(BotInfo *source, const Anope::string &chan, const Anope::string &nick)
+ void SendInvite(const BotInfo *source, const Anope::string &chan, const Anope::string &nick) anope_override
{
User *u = finduser(nick);
UplinkSocket::Message(source->GetUID()) << "INVITE " << (u ? u->GetUID() : nick) << " " << chan;
}
- void SendLogin(User *u)
+ void SendLogin(User *u) anope_override
{
if (!u->Account())
return;
@@ -225,17 +225,17 @@ class PlexusProto : public IRCDProto
UplinkSocket::Message(Me->GetSID()) << "ENCAP * SU " << u->GetUID() << " " << u->Account()->display;
}
- void SendLogout(User *u)
+ void SendLogout(User *u) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "ENCAP * SU " << u->GetUID();
}
- void SendTopic(BotInfo *bi, Channel *c)
+ void SendTopic(BotInfo *bi, Channel *c) anope_override
{
UplinkSocket::Message(bi->GetUID()) << "ENCAP * TOPIC " << c->name << " " << c->topic_setter << " " << c->topic_time + 1 << " :" << c->topic;
}
- void SendChannel(Channel *c)
+ void SendChannel(Channel *c) anope_override
{
Anope::string modes = c->GetModes(true, true);
if (modes.empty())
@@ -251,7 +251,7 @@ class PlexusIRCdMessage : public IRCdMessage
* params[0] = ts
* params[1] = channel
*/
- bool OnJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 2)
return IRCdMessage::OnJoin(source, params);
@@ -259,7 +259,7 @@ class PlexusIRCdMessage : public IRCdMessage
return true;
}
- bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 2)
return true;
@@ -286,7 +286,7 @@ class PlexusIRCdMessage : public IRCdMessage
params[9] = realhost
params[10] = info
*/
- bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
/* An IP of 0 means the user is spoofed */
Anope::string ip = params[6];
@@ -299,13 +299,13 @@ class PlexusIRCdMessage : public IRCdMessage
return true;
}
- bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
do_nick(source, params[0], "", "", "", "", Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : 0, "", "", "", "");
return true;
}
- bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[1].equals_cs("1"))
do_server(source, params[0], Anope::string(params[1]).is_pos_number_only() ? convertTo<unsigned>(params[1]) : 0, params[2], TS6UPLINK);
@@ -328,7 +328,7 @@ class PlexusIRCdMessage : public IRCdMessage
params[9] = realhost
params[10] = info
*/
- bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
if (!c)
@@ -345,7 +345,7 @@ class PlexusIRCdMessage : public IRCdMessage
return true;
}
- bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[1]);
time_t ts = Anope::string(params[0]).is_pos_number_only() ? convertTo<time_t>(params[0]) : 0;
@@ -683,7 +683,7 @@ class ProtoPlexus : public Module
pmodule_ircd_message(NULL);
}
- void OnServerSync(Server *s)
+ void OnServerSync(Server *s) anope_override
{
if (nickserv)
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp
index 16ac806be..c694b1ddc 100644
--- a/modules/protocol/ratbox.cpp
+++ b/modules/protocol/ratbox.cpp
@@ -43,40 +43,40 @@ IRCDVar myIrcd[] = {
class RatboxProto : public IRCDProto
{
- void SendGlobopsInternal(const BotInfo *source, const Anope::string &buf)
+ void SendGlobopsInternal(const BotInfo *source, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->GetUID() : Me->GetSID()) << "OPERWALL :" << buf;
}
- void SendSQLine(User *, const XLine *x)
+ void SendSQLine(User *, const XLine *x) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "RESV * " << x->Mask << " :" << x->Reason;
}
- void SendSGLineDel(const XLine *x)
+ void SendSGLineDel(const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "UNXLINE * " << x->Mask;
}
- void SendSGLine(User *, const XLine *x)
+ void SendSGLine(User *, const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "XLINE * " << x->Mask << " 0 :" << x->Reason;
}
- void SendAkillDel(const XLine *x)
+ void SendAkillDel(const XLine *x) anope_override
{
BotInfo *bi = findbot(Config->OperServ);
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "UNKLINE * " << x->GetUser() << " " << x->GetHost();
}
- void SendSQLineDel(const XLine *x)
+ void SendSQLineDel(const XLine *x) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "UNRESV * " << x->Mask;
}
- void SendJoin(User *user, Channel *c, const ChannelStatus *status)
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override
{
/* Note that we must send our modes with the SJOIN and
* can not add them to the mode stacker because ratbox
@@ -92,7 +92,7 @@ class RatboxProto : public IRCDProto
}
}
- void SendAkill(User *, const XLine *x)
+ void SendAkill(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -102,18 +102,18 @@ class RatboxProto : public IRCDProto
UplinkSocket::Message(bi ? bi->GetUID() : Config->OperServ) << "KLINE * " << timeleft << " " << x->GetUser() << " " << x->GetHost() << " :" << x->Reason;
}
- void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf)
+ void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->GetUID() : Me->GetSID()) << "KILL " << user->GetUID() << " :" << buf;
}
/* SERVER name hop descript */
- void SendServer(const Server *server)
+ void SendServer(const Server *server) anope_override
{
UplinkSocket::Message() << "SERVER " << server->GetName() << " " << server->GetHops() << " :" << server->GetDescription();
}
- void SendConnect()
+ void SendConnect() anope_override
{
UplinkSocket::Message() << "PASS " << Config->Uplinks[CurrentUplink]->password << " TS 6 :" << Me->GetSID();
/*
@@ -148,13 +148,13 @@ class RatboxProto : public IRCDProto
UplinkSocket::Message() << "SVINFO 6 3 0 :" << Anope::CurTime;
}
- void SendClientIntroduction(const User *u)
+ void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message(Me->GetSID()) << "UID " << u->nick << " 1 " << u->timestamp << " " << modes << " " << u->GetIdent() << " " << u->host << " 0 " << u->GetUID() << " :" << u->realname;
}
- void SendPartInternal(const BotInfo *bi, const Channel *chan, const Anope::string &buf)
+ void SendPartInternal(const BotInfo *bi, const Channel *chan, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(bi->GetUID()) << "PART " << chan->name << " :" << buf;
@@ -162,17 +162,17 @@ class RatboxProto : public IRCDProto
UplinkSocket::Message(bi->GetUID()) << "PART " << chan->name;
}
- void SendModeInternal(const BotInfo *bi, const Channel *dest, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const Channel *dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->GetUID() : Me->GetSID()) << "MODE " << dest->name << " " << buf;
}
- void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->GetUID() : Me->GetSID()) << "SVSMODE " << u->nick << " " << buf;
}
- void SendKickInternal(const BotInfo *bi, const Channel *chan, const User *user, const Anope::string &buf)
+ void SendKickInternal(const BotInfo *bi, const Channel *chan, const User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(bi->GetUID()) << "KICK " << chan->name << " " << user->GetUID() << " :" << buf;
@@ -181,13 +181,13 @@ class RatboxProto : public IRCDProto
}
/* INVITE */
- void SendInvite(BotInfo *source, const Anope::string &chan, const Anope::string &nick)
+ void SendInvite(const BotInfo *source, const Anope::string &chan, const Anope::string &nick) anope_override
{
User *u = finduser(nick);
UplinkSocket::Message(source->GetUID()) << "INVITE " << (u ? u->GetUID() : nick) << " " << chan;
}
- void SendLogin(User *u)
+ void SendLogin(User *u) anope_override
{
if (!u->Account())
return;
@@ -195,12 +195,12 @@ class RatboxProto : public IRCDProto
UplinkSocket::Message(Me->GetSID()) << "ENCAP * SU " << u->GetUID() << " " << u->Account()->display;
}
- void SendLogout(User *u)
+ void SendLogout(User *u) anope_override
{
UplinkSocket::Message(Me->GetSID()) << "ENCAP * SU " << u->GetUID();
}
- void SendChannel(Channel *c)
+ void SendChannel(Channel *c) anope_override
{
Anope::string modes = c->GetModes(true, true);
if (modes.empty())
@@ -208,7 +208,7 @@ class RatboxProto : public IRCDProto
UplinkSocket::Message() << "SJOIN " << c->creation_time << " " << c->name << " " << modes << " :";
}
- bool IsNickValid(const Anope::string &nick)
+ bool IsNickValid(const Anope::string &nick) anope_override
{
/* TS6 Save extension -Certus */
if (isdigit(nick[0]))
@@ -217,7 +217,7 @@ class RatboxProto : public IRCDProto
return true;
}
- void SendTopic(BotInfo *bi, Channel *c)
+ void SendTopic(BotInfo *bi, Channel *c) anope_override
{
bool needjoin = c->FindUser(bi) == NULL;
if (needjoin)
@@ -239,7 +239,7 @@ class RatboxIRCdMessage : public IRCdMessage
* params[0] = ts
* params[1] = channel
*/
- bool OnJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 2)
return IRCdMessage::OnJoin(source, params);
@@ -247,7 +247,7 @@ class RatboxIRCdMessage : public IRCdMessage
return true;
}
- bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 2)
return true;
@@ -260,7 +260,7 @@ class RatboxIRCdMessage : public IRCdMessage
return true;
}
- bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnUID(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
/* Source is always the server */
User *user = do_nick("", params[0], params[4], params[5], source, params[8], Anope::string(params[2]).is_pos_number_only() ? convertTo<time_t>(params[2]) : 0, params[6], "*", params[7], params[3]);
@@ -281,14 +281,14 @@ class RatboxIRCdMessage : public IRCdMessage
params[7] = UID
params[8] = info
*/
- bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
do_nick(source, params[0], "", "", "", "", Anope::string(params[1]).is_pos_number_only() ? convertTo<time_t>(params[1]) : 0, "", "", "", "");
return true;
}
- bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[1].equals_cs("1"))
do_server(source, params[0], Anope::string(params[1]).is_pos_number_only() ? convertTo<unsigned>(params[1]) : 0, params[2], TS6UPLINK);
@@ -298,7 +298,7 @@ class RatboxIRCdMessage : public IRCdMessage
return true;
}
- bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnTopic(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
if (!c)
@@ -318,7 +318,7 @@ class RatboxIRCdMessage : public IRCdMessage
return true;
}
- bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[1]);
time_t ts = Anope::string(params[0]).is_pos_number_only() ? convertTo<time_t>(params[0]) : 0;
@@ -598,7 +598,7 @@ class ProtoRatbox : public Module
}
- void OnServerSync(Server *s)
+ void OnServerSync(Server *s) anope_override
{
if (nickserv)
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 4f45893c8..78d4a04be 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -44,22 +44,22 @@ IRCDVar myIrcd[] = {
class UnrealIRCdProto : public IRCDProto
{
/* SVSNOOP */
- void SendSVSNOOP(const Server *server, bool set)
+ void SendSVSNOOP(const Server *server, bool set) anope_override
{
UplinkSocket::Message() << "f " << server->GetName() << " " << (set ? "+" : "-");
}
- void SendAkillDel(const XLine *x)
+ void SendAkillDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "BD - G " << x->GetUser() << " " << x->GetHost() << " " << Config->OperServ;
}
- void SendTopic(BotInfo *whosets, Channel *c)
+ void SendTopic(BotInfo *whosets, Channel *c) anope_override
{
UplinkSocket::Message(whosets->nick) << ") " << c->name << " " << c->topic_setter << " " << c->topic_time + 1 << " :" << c->topic;
}
- void SendVhostDel(User *u)
+ void SendVhostDel(User *u) anope_override
{
BotInfo *bi = findbot(Config->HostServ);
u->RemoveMode(bi, UMODE_CLOAK);
@@ -68,7 +68,7 @@ class UnrealIRCdProto : public IRCDProto
u->SetMode(bi, UMODE_CLOAK);
}
- void SendAkill(User *, const XLine *x)
+ void SendAkill(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -77,28 +77,28 @@ class UnrealIRCdProto : public IRCDProto
UplinkSocket::Message() << "BD + G " << x->GetUser() << " " << x->GetHost() << " " << x->By << " " << Anope::CurTime + timeleft << " " << x->Created << " :" << x->Reason;
}
- void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf)
+ void SendSVSKillInternal(const BotInfo *source, const User *user, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->nick : Config->ServerName) << "h " << user->nick << " :" << buf;
}
- void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) anope_override
{
UplinkSocket::Message(source ? source->nick : Config->ServerName) << "G " << dest->name << " " << buf;
}
- void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
+ void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) anope_override
{
UplinkSocket::Message(bi ? bi->nick : Config->ServerName) << "v " << u->nick <<" " << buf;
}
- void SendClientIntroduction(const User *u)
+ void SendClientIntroduction(const User *u) anope_override
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message() << "& " << u->nick << " 1 " << u->timestamp << " " << u->GetIdent() << " " << u->host << " " << u->server->GetName() << " 0 " << modes << " " << u->host << " * :" << u->realname;
}
- void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf)
+ void SendKickInternal(const BotInfo *source, const Channel *chan, const User *user, const Anope::string &buf) anope_override
{
if (!buf.empty())
UplinkSocket::Message(source->nick) << "H " << chan->name << " " << user->nick << " :" << buf;
@@ -108,7 +108,7 @@ class UnrealIRCdProto : public IRCDProto
/* SERVER name hop descript */
/* Unreal 3.2 actually sends some info about itself in the descript area */
- void SendServer(const Server *server)
+ void SendServer(const Server *server) anope_override
{
if (!Config->Numeric.empty())
UplinkSocket::Message() << "SERVER " << server->GetName() << " " << server->GetHops() << " :U0-*-" << Config->Numeric << " " << server->GetDescription();
@@ -117,7 +117,7 @@ class UnrealIRCdProto : public IRCDProto
}
/* JOIN */
- void SendJoin(User *user, Channel *c, const ChannelStatus *status)
+ void SendJoin(User *user, Channel *c, const ChannelStatus *status) anope_override
{
UplinkSocket::Message(Config->ServerName) << "~ " << c->creation_time << " " << c->name << " :" << user->nick;
if (status)
@@ -140,7 +140,7 @@ class UnrealIRCdProto : public IRCDProto
/* unsqline
*/
- void SendSQLineDel(const XLine *x)
+ void SendSQLineDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "d " << x->Mask;
}
@@ -150,7 +150,7 @@ class UnrealIRCdProto : public IRCDProto
** - Unreal will translate this to TKL for us
**
*/
- void SendSQLine(User *, const XLine *x)
+ void SendSQLine(User *, const XLine *x) anope_override
{
UplinkSocket::Message() << "c " << x->Mask << " :" << x->Reason;
}
@@ -161,20 +161,20 @@ class UnrealIRCdProto : public IRCDProto
** parv[1] = nick
** parv[2] = options
*/
- void SendSVSO(const Anope::string &source, const Anope::string &nick, const Anope::string &flag)
+ void SendSVSO(const Anope::string &source, const Anope::string &nick, const Anope::string &flag) anope_override
{
UplinkSocket::Message(source) << "BB " << nick << " " << flag;
}
/* NICK <newnick> */
- void SendChangeBotNick(const BotInfo *oldnick, const Anope::string &newnick)
+ void SendChangeBotNick(const BotInfo *oldnick, const Anope::string &newnick) anope_override
{
UplinkSocket::Message(oldnick->nick) << "& " << newnick << " " << Anope::CurTime;
}
/* Functions that use serval cmd functions */
- void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost)
+ void SendVhost(User *u, const Anope::string &vIdent, const Anope::string &vhost) anope_override
{
if (!vIdent.empty())
UplinkSocket::Message(Config->ServerName) << "AZ " << u->nick << " " << vIdent;
@@ -182,7 +182,7 @@ class UnrealIRCdProto : public IRCDProto
UplinkSocket::Message(Config->ServerName) << "AL " << u->nick << " " << vhost;
}
- void SendConnect()
+ void SendConnect() anope_override
{
/*
NICKv2 = Nick Version 2
@@ -207,13 +207,13 @@ class UnrealIRCdProto : public IRCDProto
}
/* SVSHOLD - set */
- void SendSVSHold(const Anope::string &nick)
+ void SendSVSHold(const Anope::string &nick) anope_override
{
UplinkSocket::Message() << "BD + Q H " << nick << " " << Config->ServerName << " " << Anope::CurTime + Config->NSReleaseTimeout << " " << Anope::CurTime << " :Being held for registered user";
}
/* SVSHOLD - release */
- void SendSVSHoldDel(const Anope::string &nick)
+ void SendSVSHoldDel(const Anope::string &nick) anope_override
{
UplinkSocket::Message() << "BD - Q * " << nick << " " << Config->ServerName;
}
@@ -222,19 +222,19 @@ class UnrealIRCdProto : public IRCDProto
/*
* SVSNLINE - :realname mask
*/
- void SendSGLineDel(const XLine *x)
+ void SendSGLineDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "BR - :" << x->Mask;
}
/* UNSZLINE */
- void SendSZLineDel(const XLine *x)
+ void SendSZLineDel(const XLine *x) anope_override
{
UplinkSocket::Message() << "BD - Z * " << x->GetHost() << " " << Config->OperServ;
}
/* SZLINE */
- void SendSZLine(User *, const XLine *x)
+ void SendSZLine(User *, const XLine *x) anope_override
{
// Calculate the time left before this would expire, capping it at 2 days
time_t timeleft = x->Expires - Anope::CurTime;
@@ -247,7 +247,7 @@ class UnrealIRCdProto : public IRCDProto
/*
* SVSNLINE + reason_where_is_space :realname mask with spaces
*/
- void SendSGLine(User *, const XLine *x)
+ void SendSGLine(User *, const XLine *x) anope_override
{
Anope::string edited_reason = x->Reason;
edited_reason = edited_reason.replace_all_cs(" ", "_");
@@ -263,7 +263,7 @@ class UnrealIRCdProto : public IRCDProto
/* In older Unreal SVSJOIN and SVSNLINE tokens were mixed so SVSJOIN and SVSNLINE are broken
when coming from a none TOKEN'd server
*/
- void SendSVSJoin(const Anope::string &source, const Anope::string &nick, const Anope::string &chan, const Anope::string &param)
+ void SendSVSJoin(const Anope::string &source, const Anope::string &nick, const Anope::string &chan, const Anope::string &param) anope_override
{
if (!param.empty())
UplinkSocket::Message(source) << "BX " << nick << " " << chan << " :" << param;
@@ -271,17 +271,17 @@ class UnrealIRCdProto : public IRCDProto
UplinkSocket::Message(source) << "BX " << nick << " :" << chan;
}
- void SendSWhois(const Anope::string &source, const Anope::string &who, const Anope::string &mask)
+ void SendSWhois(const Anope::string &source, const Anope::string &who, const Anope::string &mask) anope_override
{
UplinkSocket::Message(source) << "BA " << who << " :" << mask;
}
- void SendEOB()
+ void SendEOB() anope_override
{
UplinkSocket::Message(Config->ServerName) << "ES";
}
- bool IsNickValid(const Anope::string &nick)
+ bool IsNickValid(const Anope::string &nick) anope_override
{
if (nick.equals_ci("ircd") || nick.equals_ci("irc"))
return false;
@@ -289,7 +289,7 @@ class UnrealIRCdProto : public IRCDProto
return true;
}
- bool IsChannelValid(const Anope::string &chan)
+ bool IsChannelValid(const Anope::string &chan) anope_override
{
if (chan.find(':') != Anope::string::npos || chan[0] != '#')
return false;
@@ -297,7 +297,7 @@ class UnrealIRCdProto : public IRCDProto
return true;
}
- void SendLogin(User *u)
+ void SendLogin(User *u) anope_override
{
if (!u->Account())
return;
@@ -309,13 +309,13 @@ class UnrealIRCdProto : public IRCDProto
ircdproto->SendMode(ns, u, "+d %d", u->timestamp);
}
- void SendLogout(User *u)
+ void SendLogout(User *u) anope_override
{
BotInfo *ns = findbot(Config->NickServ);
ircdproto->SendMode(ns, u, "+d 1");
}
- void SendChannel(Channel *c)
+ void SendChannel(Channel *c) anope_override
{
/* Unreal does not support updating a channels TS without actually joining a user,
* so we will join and part us now
@@ -341,7 +341,7 @@ class UnrealExtBan : public ChannelModeList
public:
UnrealExtBan(ChannelModeName mName, char modeChar) : ChannelModeList(mName, modeChar) { }
- bool Matches(User *u, const Entry *e)
+ bool Matches(User *u, const Entry *e) anope_override
{
const Anope::string &mask = e->mask;
@@ -406,7 +406,7 @@ class ChannelModeFlood : public ChannelModeParam
ChannelModeFlood(char modeChar, bool minusNoArg) : ChannelModeParam(CMODE_FLOOD, modeChar, minusNoArg) { }
/* Borrowed part of this check from UnrealIRCd */
- bool IsValid(const Anope::string &value) const
+ bool IsValid(const Anope::string &value) const anope_override
{
if (value.empty())
return false;
@@ -451,7 +451,7 @@ class ChannelModeUnrealSSL : public ChannelMode
{
}
- bool CanSet(User *u) const
+ bool CanSet(User *u) const anope_override
{
return false;
}
@@ -460,7 +460,7 @@ class ChannelModeUnrealSSL : public ChannelMode
class Unreal32IRCdMessage : public IRCdMessage
{
public:
- bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnMode(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() < 2)
return true;
@@ -504,7 +504,7 @@ class Unreal32IRCdMessage : public IRCdMessage
** parv[0] = new nickname
** parv[1] = hopcount
*/
- bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnNick(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params.size() == 7)
{
@@ -595,7 +595,7 @@ class Unreal32IRCdMessage : public IRCdMessage
return true;
}
- bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnServer(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
if (params[1].equals_cs("1"))
{
@@ -619,7 +619,7 @@ class Unreal32IRCdMessage : public IRCdMessage
** parv[2] = topic time
** parv[3] = topic text
*/
- bool OnTopic(const Anope::string &, const std::vector<Anope::string> &params)
+ bool OnTopic(const Anope::string &, const std::vector<Anope::string> &params) anope_override
{
if (params.size() != 4)
return true;
@@ -636,7 +636,7 @@ class Unreal32IRCdMessage : public IRCdMessage
return true;
}
- bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnCapab(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
for (unsigned i = 0; i < params.size(); ++i)
{
@@ -788,7 +788,7 @@ class Unreal32IRCdMessage : public IRCdMessage
return true;
}
- bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params)
+ bool OnSJoin(const Anope::string &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[1]);
time_t ts = Anope::string(params[0]).is_pos_number_only() ? convertTo<time_t>(params[0]) : 0;
@@ -1174,7 +1174,7 @@ class ProtoUnreal : public Module
}
- void OnUserNickChange(User *u, const Anope::string &)
+ void OnUserNickChange(User *u, const Anope::string &) anope_override
{
u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));
}