X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fextra%2Fm_ssl_oper_cert.cpp;h=571dcad06eb5882801e898bd1534832412d90159;hb=a4306bc3188148e99245d4e84df7e67949e5a619;hp=6746a4afa2ea26e81210ee0ea6f0df1232cfb2ad;hpb=31b232eec07d0b85ce2cc7c4ebc5d5387f781dcb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/extra/m_ssl_oper_cert.cpp b/src/modules/extra/m_ssl_oper_cert.cpp index 6746a4afa..571dcad06 100644 --- a/src/modules/extra/m_ssl_oper_cert.cpp +++ b/src/modules/extra/m_ssl_oper_cert.cpp @@ -15,18 +15,14 @@ /* $ModDep: transport.h */ #include "inspircd.h" -#include "inspircd_config.h" -#include "users.h" -#include "channels.h" -#include "modules.h" #include "transport.h" /** Handle /FINGERPRINT */ -class cmd_fingerprint : public Command +class CommandFingerprint : public Command { public: - cmd_fingerprint (InspIRCd* Instance) : Command(Instance,"FINGERPRINT", 0, 1) + CommandFingerprint (InspIRCd* Instance) : Command(Instance,"FINGERPRINT", 0, 1) { this->source = "m_ssl_oper_cert.so"; syntax = ""; @@ -71,14 +67,14 @@ class ModuleOperSSLCert : public Module { ssl_cert* cert; bool HasCert; - cmd_fingerprint* mycommand; + CommandFingerprint* mycommand; ConfigReader* cf; public: ModuleOperSSLCert(InspIRCd* Me) : Module(Me) { - mycommand = new cmd_fingerprint(ServerInstance); + mycommand = new CommandFingerprint(ServerInstance); ServerInstance->AddCommand(mycommand); cf = new ConfigReader(ServerInstance); Implementation eventlist[] = { I_OnPreCommand, I_OnRehash }; @@ -103,7 +99,7 @@ class ModuleOperSSLCert : public Module std::string xhost; while (hl >> xhost) { - if (InspIRCd::Match(host, xhost) || InspIRCd::MatchCIDR(ip, xhost)) + if (InspIRCd::Match(host, xhost, ascii_case_insensitive_map) || InspIRCd::MatchCIDR(ip, xhost, ascii_case_insensitive_map)) { return true; } @@ -152,7 +148,7 @@ class ModuleOperSSLCert : public Module if (!OneOfMatches(TheHost, TheIP, HostName.c_str())) continue; - if (Password.length() && !ServerInstance->PassCompare(user, Password.c_str(),parameters[1].c_str(), HashType.c_str())) + if (Password.length() && ServerInstance->PassCompare(user, Password.c_str(),parameters[1].c_str(), HashType.c_str())) continue; if (SSLOnly && !user->GetExt("ssl", dummy))