]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Allow halfops to remove their own halfop status
[user/henk/code/inspircd.git] / src / server.cpp
index c5e784a1ce5cd7dd1ba920206ba85faa83545c02..8c8e1b0dc35a4d076478a43312349c77a786a6a8 100644 (file)
@@ -11,8 +11,6 @@
  * ---------------------------------------------------
  */
 
-/* $Core */
-
 #include <signal.h>
 #include "exitcodes.h"
 #include "inspircd.h"
@@ -59,20 +57,20 @@ void RehashHandler::Call(const std::string &reason)
        }
 }
 
-std::string InspIRCd::GetVersionString()
+std::string InspIRCd::GetVersionString(bool operstring)
 {
        char versiondata[MAXBUF];
-       if (!Config->CustomVersion.empty())
-       {
-               snprintf(versiondata,MAXBUF,"InspIRCd-2.0 %s :%s",Config->ServerName.c_str(),Config->CustomVersion.c_str());
-       }
+       if (operstring)
+               snprintf(versiondata,MAXBUF,"%s %s :%s [%s,%s,%s]",VERSION,Config->ServerName.c_str(),SYSTEM,REVISION,SE->GetName().c_str(),Config->sid.c_str());
        else
-       {
-               snprintf(versiondata,MAXBUF,"InspIRCd-2.0 %s :%s (%s) [FLAGS=%s,%s,%s]",Config->ServerName.c_str(),SYSTEM,VERSION,REVISION,SE->GetName().c_str(),Config->sid.c_str());
-       }
+               snprintf(versiondata,MAXBUF,"InspIRCd-2.0 %s :%s",Config->ServerName.c_str(),Config->CustomVersion.c_str());
        return versiondata;
 }
 
+const char InspIRCd::LogHeader[] =
+       "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")"
+       " - compiled on " SYSTEM;
+
 void InspIRCd::BuildISupport()
 {
        // the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...