diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-22 00:09:15 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-22 00:09:15 +0000 |
commit | 585138e4a46a3c9f3ad3666f675d178922a81815 (patch) | |
tree | 6f7dec768836d371f7d611508ebbd9c32823ff5f /src/server.cpp | |
parent | d221de88276b9e33a108281a9cd0a58875032fc6 (diff) |
Clean up unused functions, add nonicks operoverride [dKingston]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11951 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/server.cpp b/src/server.cpp index 8b2c9a672..57b853ebb 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -18,17 +18,15 @@ #include "inspircd.h" #include "inspircd_version.h" - void InspIRCd::SignalHandler(int signal) { - switch (signal) + if (signal == SIGHUP) + { + Rehash("Caught SIGHUP"); + } + else if (signal == SIGTERM) { - case SIGHUP: - Rehash("due to SIGHUP"); - break; - case SIGTERM: - Exit(signal); - break; + Exit(signal); } } @@ -61,11 +59,6 @@ void RehashHandler::Call(const std::string &reason) } } -void InspIRCd::RehashServer() -{ - this->Rehash(""); -} - std::string InspIRCd::GetVersionString() { char versiondata[MAXBUF]; @@ -92,11 +85,6 @@ void InspIRCd::BuildISupport() Config->Update005(); } -std::string InspIRCd::GetRevision() -{ - return REVISION; -} - void InspIRCd::IncrementUID(int pos) { /* |