summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-05 21:39:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-05 21:39:55 +0000
commit82fb111759a49dc4a7f6aae422aae9423a5e78f1 (patch)
tree92945b808ebc30135eaf8d70b40d749a0513ca5f /win
parent312bb77ee1560515b51465cfa6048fb83da18fe2 (diff)
Windows fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9368 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win')
-rw-r--r--win/inspircd_win32wrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp
index c42e8bd64..468de9144 100644
--- a/win/inspircd_win32wrapper.cpp
+++ b/win/inspircd_win32wrapper.cpp
@@ -390,7 +390,7 @@ void IPC::Check()
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;
}
@@ -523,7 +523,7 @@ void ClearConsole()
*/
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;
}
@@ -631,7 +631,7 @@ bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* v
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.
@@ -644,7 +644,7 @@ bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* v
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;
}