From 48033e9b3a708f265c0bc2d62460a6cefa70dd45 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 5 May 2013 19:36:46 +0100 Subject: Convert XLine::Displayable to return a std::string. --- src/modules/m_spanningtree/netburst.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index c22ad3acb..639a397c6 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -120,7 +120,6 @@ void TreeSocket::SendFJoins(Channel* c) void TreeSocket::SendXLines() { char data[MAXBUF]; - const char* sn = ServerInstance->Config->GetSID().c_str(); std::vector types = ServerInstance->XLines->GetAllTypes(); @@ -140,7 +139,10 @@ void TreeSocket::SendXLines() if (!i->second->IsBurstable()) break; - snprintf(data,MAXBUF,":%s ADDLINE %s %s %s %lu %lu :%s",sn, it->c_str(), i->second->Displayable(), + snprintf(data, MAXBUF, ":%s ADDLINE %s %s %s %lu %lu :%s", + ServerInstance->Config->GetSID().c_str(), + it->c_str(), + i->second->Displayable().c_str(), i->second->source.c_str(), (unsigned long)i->second->set_time, (unsigned long)i->second->duration, -- cgit v1.2.3