diff options
| author | 2006-08-10 14:43:29 +0000 | |
|---|---|---|
| committer | 2006-08-10 14:43:29 +0000 | |
| commit | 396c9ef9f7a96934d3227bb7d1d091315e3d4fa8 (patch) | |
| tree | b775fca47b8536d7e3c5df17480dbf4cca9f6ded /src/inspircd.cpp | |
| parent | Change to use the core perl module Cwd rather than the pwd command. Should be... (diff) | |
FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass, WriteOpers, GetServerDescription -> into classes
ServerConfig takes InspIRCd pointer in its constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 9f38eec7e..7d5cf6dc5 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -142,7 +142,7 @@ void Killed(int status) void Rehash(int status) { - WriteOpers("Rehashing config file %s due to SIGHUP",CleanFilename(CONFIG_FILE)); + ServerInstance->WriteOpers("Rehashing config file %s due to SIGHUP",CleanFilename(CONFIG_FILE)); fclose(ServerInstance->Config->log_file); OpenLog(NULL,0); ServerInstance->Config->Read(false,NULL); @@ -228,8 +228,8 @@ void InspIRCd::MakeLowerMap() InspIRCd::InspIRCd(int argc, char** argv) { bool SEGVHandler = false; - this->Config = new ServerConfig; ServerInstance = this; + this->Config = new ServerConfig(this); this->Start(); this->module_sockets.clear(); this->startup_time = time(NULL); @@ -304,7 +304,7 @@ InspIRCd::InspIRCd(int argc, char** argv) Config->Read(true, NULL); CheckRoot(); this->ModeGrok = new ModeParser(); - AddServerName(Config->ServerName); + this->AddServerName(Config->ServerName); CheckDie(); InitializeDisabledCommands(Config->DisabledCommands, this); stats->BoundPortCount = BindPorts(true); |
