* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
if (!res)
{
if (GetLastError() != ERROR_SEM_TIMEOUT)
- Instance->Log(DEFAULT, "IPC Pipe Error %u: %s", GetLastError(), dlerror());
+ Instance->Logs->Log("win32",DEFAULT, "IPC Pipe Error %u: %s", GetLastError(), dlerror());
return;
}
switch (action)
{
case IPC_MESSAGE_REHASH:
- Instance->Rehash();
+ Instance->Rehash("due to IPC message");
break;
case IPC_MESSAGE_DIE:
*/
void ChangeWindowsSpecificPointers(InspIRCd* Instance)
{
- Instance->Log(DEBUG,"Changing to windows specific pointer and functor set");
+ Instance->Logs->Log("win32",DEBUG,"Changing to windows specific pointer and functor set");
Instance->Config->DNSServerValidator = &ValidateWindowsDnsServer;
}
if (!*(data.GetString()))
{
std::string nameserver;
- conf->GetInstance()->Log(DEFAULT,"WARNING: <dns:server> not defined, attempting to find working server in the registry...");
+ conf->GetInstance()->Logs->Log("win32",DEFAULT,"WARNING: <dns:server> not defined, attempting to find working server in the registry...");
nameserver = FindNameServerWin();
/* Windows stacks multiple nameservers in one registry key, seperated by commas.
* Spotted by Cataclysm.
if (nameserver.find(' ') != std::string::npos)
nameserver = nameserver.substr(0, nameserver.find(' '));
data.Set(nameserver.c_str());
- conf->GetInstance()->Log(DEFAULT,"<dns:server> set to '%s' as first active resolver in registry.", nameserver.c_str());
+ conf->GetInstance()->Logs->Log("win32",DEFAULT,"<dns:server> set to '%s' as first active resolver in registry.", nameserver.c_str());
}
return true;
}