diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:26:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:26:07 +0000 |
commit | e84bf9f3ec5a60078c32b272d3d7885c0708c544 (patch) | |
tree | 99fc8f4b4d7bede49e91f27abcdee6fb8c4fe6f4 /src/helperfuncs.cpp | |
parent | d17465716790010b6e3221f9ce49272110276ccf (diff) |
Change to using Instance->Log (InspIRCd::Log) rather than log() macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 44958d44f..211d1b617 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -192,7 +192,7 @@ void InspIRCd::WriteMode(const char* modes, int flags, const char* text, ...) if ((!text) || (!modes) || (!flags)) { - ilog(this,DEFAULT,"*** BUG *** WriteMode was given an invalid parameter"); + this->Log(DEFAULT,"*** BUG *** WriteMode was given an invalid parameter"); return; } @@ -463,7 +463,7 @@ void InspIRCd::CheckRoot() if (geteuid() == 0) { printf("WARNING!!! You are running an irc server as ROOT!!! DO NOT DO THIS!!!\n\n"); - ilog(this,DEFAULT,"Cant start as root"); + this->Log(DEFAULT,"Cant start as root"); Exit(ERROR); } } @@ -473,7 +473,7 @@ void InspIRCd::CheckDie() if (*Config->DieValue) { printf("WARNING: %s\n\n",Config->DieValue); - ilog(this,DEFAULT,"Died because of <die> tag: %s",Config->DieValue); + this->Log(DEFAULT,"Died because of <die> tag: %s",Config->DieValue); Exit(ERROR); } } @@ -492,12 +492,12 @@ void InspIRCd::LoadAllModules() if (!this->LoadModule(configToken)) { - ilog(this,DEFAULT,"There was an error loading a module: %s", this->ModuleError()); + this->Log(DEFAULT,"There was an error loading a module: %s", this->ModuleError()); printf("\nThere was an error loading a module: %s\n\n",this->ModuleError()); Exit(ERROR); } } printf("\nA total of \033[1;32m%d\033[0m module%s been loaded.\n", this->ModCount+1, this->ModCount+1 == 1 ? " has" : "s have"); - ilog(this,DEFAULT,"Total loaded modules: %d", this->ModCount+1); + this->Log(DEFAULT,"Total loaded modules: %d", this->ModCount+1); } |