From 55de6781e0d26c304e7d1bfa7c84698183c14228 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 1 Jul 2006 14:56:33 +0000 Subject: Move SetSignals(), Start() and DaemonSeed() into private methods of class InspIRCd, move MakeLowerMap() into private: section git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4096 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 34ce45e14..12c935b3d 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -141,7 +141,7 @@ void Exit(int status) exit (status); } -void Start() +void InspIRCd::Start() { printf("\033[1;32mInspire Internet Relay Chat Server, compiled %s at %s\n",__DATE__,__TIME__); printf("(C) ChatSpike Development team.\033[0m\n\n"); @@ -167,7 +167,7 @@ void Rehash(int status) FOREACH_MOD(I_OnRehash,OnRehash("")); } -void SetSignals() +void InspIRCd::SetSignals() { signal (SIGALRM, SIG_IGN); signal (SIGHUP, Rehash); @@ -176,7 +176,7 @@ void SetSignals() signal (SIGSEGV, Error); } -bool DaemonSeed() +bool InspIRCd::DaemonSeed() { int childpid; if ((childpid = fork ()) < 0) @@ -244,7 +244,7 @@ void InspIRCd::MakeLowerMap() InspIRCd::InspIRCd(int argc, char** argv) { - Start(); + this->Start(); module_sockets.clear(); this->startup_time = time(NULL); srand(time(NULL)); @@ -317,10 +317,10 @@ InspIRCd::InspIRCd(int argc, char** argv) memset(&Config->implement_lists,0,sizeof(Config->implement_lists)); printf("\n"); - SetSignals(); + this->SetSignals(); if (!Config->nofork) { - if (!DaemonSeed()) + if (!this->DaemonSeed()) { printf("ERROR: could not go into daemon mode. Shutting down.\n"); Exit(ERROR); -- cgit v1.2.3