]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use it here, too
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 28 Aug 2007 18:02:28 +0000 (18:02 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 28 Aug 2007 18:02:28 +0000 (18:02 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7960 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree/utils.cpp

index 0ba657b854783711d1e8493b0a698ad70fb11b53..1e0788623e5d10f4c61493c05c68ea5a079bff71 100644 (file)
@@ -176,17 +176,11 @@ SpanningTreeUtilities::SpanningTreeUtilities(InspIRCd* Instance, ModuleSpanningT
 {
        Bindings.clear();
 
-       std::string OurSID;
-
-       OurSID += (char)((Instance->Config->sid / 100) + 48);
-       OurSID += (char)((Instance->Config->sid / 10) % 10 + 48);
-       OurSID += (char)(Instance->Config->sid % 10 + 48);
-
        lines_to_apply = 0;
 
        ServerInstance->Log(DEBUG, "SpanningTreeUtilities: SID: %s", OurSID.c_str());
 
-       this->TreeRoot = new TreeServer(this, ServerInstance, ServerInstance->Config->ServerName, ServerInstance->Config->ServerDesc, OurSID);
+       this->TreeRoot = new TreeServer(this, ServerInstance, ServerInstance->Config->ServerName, ServerInstance->Config->ServerDesc, ServerInstance->Config->GetSID());
 
        modulelist* ml = ServerInstance->FindInterface("InspSocketHook");