mirror of
https://github.com/anope/anope.git
synced 2026-07-03 14:23:11 +02:00
Replace anope_{final,override} with their C++11 equivalent.
This commit is contained in:
@@ -19,14 +19,14 @@ class OldMD5Provider : public Encryption::Provider
|
||||
public:
|
||||
OldMD5Provider(Module *creator) : Encryption::Provider(creator, "oldmd5") { }
|
||||
|
||||
Encryption::Context *CreateContext(Encryption::IV *iv) anope_override
|
||||
Encryption::Context *CreateContext(Encryption::IV *iv) override
|
||||
{
|
||||
if (md5)
|
||||
return md5->CreateContext(iv);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Encryption::IV GetDefaultIV() anope_override
|
||||
Encryption::IV GetDefaultIV() override
|
||||
{
|
||||
if (md5)
|
||||
return md5->GetDefaultIV();
|
||||
@@ -53,7 +53,7 @@ class EOld : public Module
|
||||
|
||||
}
|
||||
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) override
|
||||
{
|
||||
if (!md5)
|
||||
return EVENT_CONTINUE;
|
||||
@@ -81,7 +81,7 @@ class EOld : public Module
|
||||
return EVENT_ALLOW;
|
||||
}
|
||||
|
||||
void OnCheckAuthentication(User *, IdentifyRequest *req) anope_override
|
||||
void OnCheckAuthentication(User *, IdentifyRequest *req) override
|
||||
{
|
||||
const NickAlias *na = NickAlias::Find(req->GetAccount());
|
||||
if (na == NULL)
|
||||
|
||||
Reference in New Issue
Block a user