aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra/m_ldapoper.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2013-05-15 13:48:02 -0700
committerGravatar Attila Molnar2013-05-15 13:48:02 -0700
commit4b41feea830fc84e8c1b2fd0982f3e8d8840af96 (patch)
treed9cf047483dd4bf6c21c9465ae51e842ca1e7b50 /src/modules/extra/m_ldapoper.cpp
parentMerge pull request #531 from SaberUK/master+snprintf-removal (diff)
parentTidy up keywords on module methods. (diff)
Merge pull request #514 from SaberUK/master+virtual-cleanup
Remove virtual keyword from a ton of methods which don't need it, introduce CXX11_OVERRIDE.
Diffstat (limited to 'src/modules/extra/m_ldapoper.cpp')
-rw-r--r--src/modules/extra/m_ldapoper.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/extra/m_ldapoper.cpp b/src/modules/extra/m_ldapoper.cpp
index f10773ec9..79ac13dd5 100644
--- a/src/modules/extra/m_ldapoper.cpp
+++ b/src/modules/extra/m_ldapoper.cpp
@@ -98,20 +98,20 @@ public:
{
}
- void init()
+ void init() CXX11_OVERRIDE
{
Implementation eventlist[] = { I_OnRehash, I_OnPreCommand };
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
OnRehash(NULL);
}
- virtual ~ModuleLDAPAuth()
+ ~ModuleLDAPAuth()
{
if (conn)
ldap_unbind_ext(conn, NULL, NULL);
}
- virtual void OnRehash(User* user)
+ void OnRehash(User* user) CXX11_OVERRIDE
{
ConfigTag* tag = ServerInstance->Config->ConfValue("ldapoper");
@@ -153,7 +153,7 @@ public:
return true;
}
- ModResult OnPreCommand(std::string& command, std::vector<std::string>& parameters, LocalUser* user, bool validated, const std::string& original_line)
+ ModResult OnPreCommand(std::string& command, std::vector<std::string>& parameters, LocalUser* user, bool validated, const std::string& original_line) CXX11_OVERRIDE
{
if (validated && command == "OPER" && parameters.size() >= 2)
{
@@ -230,7 +230,7 @@ public:
}
}
- virtual Version GetVersion()
+ Version GetVersion() CXX11_OVERRIDE
{
return Version("Adds the ability to authenticate opers via LDAP", VF_VENDOR);
}