*/
void DisableAutoRegister();
};
-
*/
void InvokeStats(const std::string &type, int numeric, User* user, string_list &results);
};
-
: CoreException(message, who ? who->ModuleSourceFile : "A Module")
{
}
-
return mask == mask2;
}
-
-
{
return CMD_INVALID;
}
-
#ifdef _WIN32
size_t pos = name.find_last_of("\\/");
#else
- size_t pos = name.rfind('/');
+ size_t pos = name.rfind('/');
#endif
return pos == std::string::npos ? name : name.substr(++pos);
}
{
return Version("Change user's hosts connecting from known CGI:IRC hosts",VF_VENDOR);
}
-
};
MODULE_INIT(ModuleCgiIRC)
{
return Version("Provides support for the CHGIDENT command", VF_OPTCOMMON | VF_VENDOR);
}
-
};
MODULE_INIT(ModuleChgIdent)
{
return Version("Provides support for the CHGNAME command", VF_OPTCOMMON | VF_VENDOR);
}
-
};
MODULE_INIT(ModuleChgName)
/* Command 'close', needs operator */
CommandClose(Module* Creator) : Command(Creator,"CLOSE", 0)
{
- flags_needed = 'o'; }
+ flags_needed = 'o';
+ }
CmdResult Handle (const std::vector<std::string> ¶meters, User *src)
{
{
StringExtItem mlock;
-public:
- ModuleMLock() : mlock("mlock", this) {};
+ public:
+ ModuleMLock()
+ : mlock("mlock", this)
+ {
+ }
Version GetVersion() CXX11_OVERRIDE
{
* So, let's write to a temporary file, flush it, then rename the file..
* -- w00t
*/
-
+
// If the user has not specified a configuration file then we don't write one.
if (permchannelsconf.empty())
return true;
ServerInstance->SNO->WriteToSnoMask('a', "database: cannot create new db: %s (%d)", strerror(errno), errno);
return false;
}
-
+
stream << "# This file is automatically generated by m_permchannels. Any changes will be overwritten." << std::endl
<< "<config format=\"xml\">" << std::endl;
};
MODULE_INIT(ModuleSanick)
-
};
MODULE_INIT(ModuleSaquit)
-
};
MODULE_INIT(ModuleServicesAccount)
-
}
};
-
MODULE_INIT(ModuleServProtectMode)
};
MODULE_INIT(ModuleShowwhois)
-
}
return CMD_FAILURE;
}
-
ServerInstance->Modes->Process(modelist, who, flags);
return CMD_SUCCESS;
}
-
-
FOREACH_MOD(OnSyncUser, (user, piserver));
}
}
-
}
return MOD_RES_DENY;
}
-
}
return MOD_RES_PASSTHRU;
}
-
}
return MOD_RES_PASSTHRU;
}
-
}
return CMD_SUCCESS;
}
-
-
}
return CMD_SUCCESS;
}
-
}
return MOD_RES_PASSTHRU;
}
-
}
return CMD_SUCCESS;
}
-
server->SetVersion(params[0]);
return CMD_SUCCESS;
}
-
ServerInstance->SNO->WriteToSnoMask('a', "database: cannot read db: %s (%d)", strerror(errno), errno);
return false;
}
-
+
std::string line;
while (std::getline(stream, line))
{
irc::sockets::cidr_mask tmp(addr, length);
return tmp == *this;
}
-
if (MOD_RESULT == MOD_RES_DENY)
return;
-
+
const std::string message = InspIRCd::Format(":%s %03u %s %s", ServerInstance->Config->ServerName.c_str(),
numeric, !this->nick.empty() ? this->nick.c_str() : "*", text.c_str());
this->Write(message);
* Starting with PSAPI version 2 for Windows 7 and Windows Server 2008 R2, this function is defined as K32GetProcessMemoryInfo in Psapi.h and exported
* in Kernel32.lib and Kernel32.dll. However, you should always call this function as GetProcessMemoryInfo. To ensure correct resolution of symbols
* for programs that will run on earlier versions of Windows, add Psapi.lib to the TARGETLIBS macro and compile the program with PSAPI_VERSION=1.
- *
+ *
* We do this before anything to make sure it's done.
*/
#define PSAPI_VERSION 1
/* IPV4 only convert string to address struct */
__inline int inet_aton(const char *cp, struct in_addr *addr)
-{
+{
addr->s_addr = inet_addr(cp);
return (addr->s_addr == INADDR_NONE) ? 0 : 1;
};