]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket2.cpp
Fix Windows build and a few more problems
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket2.cpp
index 66826ff3b9e3fa0392e6b766a64b63a9d3fdf5e7..5181dfeeac05c48bb174f1d6210dd6ea4f26b2ed 100644 (file)
@@ -184,8 +184,8 @@ void TreeSocket::ProcessLine(std::string &line)
                                sparams.push_back("0");
                                sparams.push_back(MyRoot->GetID());
                                sparams.push_back(":" + MyRoot->GetDesc());
-                               Utils->DoOneToAllButSender(ServerInstance->Config->GetSID(), "SERVER", sparams, MyRoot->GetName());
-                               Utils->DoOneToAllButSender(MyRoot->GetID(), "BURST", params, MyRoot->GetName());
+                               Utils->DoOneToAllButSender(ServerInstance->Config->GetSID(), "SERVER", sparams, MyRoot);
+                               Utils->DoOneToAllButSender(MyRoot->GetID(), "BURST", params, MyRoot);
                        }
                        else if (command == "ERROR")
                        {
@@ -388,7 +388,7 @@ void TreeSocket::Close()
                time_t server_uptime = ServerInstance->Time() - this->age;
                if (server_uptime)
                {
-                       std::string timestr = Utils->Creator->TimeToStr(server_uptime);
+                       std::string timestr = ModuleSpanningTree::TimeToStr(server_uptime);
                        ServerInstance->SNO->WriteGlobalSno('l', "Connection to '\2%s\2' was established for %s", linkID.c_str(), timestr.c_str());
                }
        }