]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Remove /summon and /users (I think 15+ years of being marked deprecated is enough...
[user/henk/code/inspircd.git] / src / server.cpp
index 041b9f5ddd839ddf7901deb3ca86b9f13ba2f2e7..2722c6831966840b145ad9f0c59bce05e88c2499 100644 (file)
@@ -69,15 +69,13 @@ void InspIRCd::RehashServer()
 std::string InspIRCd::GetVersionString()
 {
        char versiondata[MAXBUF];
-       char dnsengine[] = "singlethread-object";
-
        if (*Config->CustomVersion)
        {
                snprintf(versiondata,MAXBUF,"%s %s :%s",VERSION,Config->ServerName,Config->CustomVersion);
        }
        else
        {
-               snprintf(versiondata,MAXBUF,"%s %s :%s [FLAGS=%s,%s,%s]",VERSION,Config->ServerName,SYSTEM,REVISION,SE->GetName().c_str(),dnsengine);
+               snprintf(versiondata,MAXBUF,"%s %s :%s [FLAGS=%s,%s,%d]",VERSION,Config->ServerName,SYSTEM,REVISION,SE->GetName().c_str(),Config->sid);
        }
        return versiondata;
 }
@@ -175,9 +173,11 @@ std::string InspIRCd::GetUID()
 
                        if (current_uid[3] == 'Z')
                        {
-                               /* If we get to here, we need to wrap around to AAAA. */
-                               for(int j = 3; j < UUID_LENGTH - 1; j++)
-                                       current_uid[j] = 'A';
+                               /*
+                                * Ugh. We have run out of room.. roll back around to the
+                                * start of the UUID namespace. -- w00t
+                                */
+                               this->InitialiseUID();
 
                                /*
                                 * and now we need to break the inner for () to continue the while (),