/* $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 = "<nickname>";
{
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 };
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;
}
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))
virtual Version GetVersion()
{
- return Version(1,2,0,0,VF_VENDOR,API_VERSION);
+ return Version("$Id$", VF_VENDOR, API_VERSION);
}
};