diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 98f6aa837..640192867 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2292,6 +2292,8 @@ class ModuleSpanningTree : public Module { if (std::string(source->server) == Srv->GetServerName()) { + std::string type = "LINE"; + type = linetype + line; if (adding) { char sduration[MAXBUF]; @@ -2300,13 +2302,14 @@ class ModuleSpanningTree : public Module params.push_back(host); params.push_back(sduration); params.push_back(":"+reason); - DoOneToMany(source->nick,linetype+"LINE",params); + DoOneToMany(source->nick,type,params); } else { std::deque<std::string> params; params.push_back(host); - DoOneToMany(source->nick,linetype+"LINE",params); + type = linetype + line; + DoOneToMany(source->nick,type,params); } } } |