summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 640192867..9b21729c1 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2292,8 +2292,9 @@ class ModuleSpanningTree : public Module
{
if (std::string(source->server) == Srv->GetServerName())
{
- std::string type = "LINE";
- type = linetype + line;
+ char type[8];
+ snprintf(type,8,"%cLINE",linetype);
+ std::string stype = type;
if (adding)
{
char sduration[MAXBUF];
@@ -2302,14 +2303,14 @@ class ModuleSpanningTree : public Module
params.push_back(host);
params.push_back(sduration);
params.push_back(":"+reason);
- DoOneToMany(source->nick,type,params);
+ DoOneToMany(source->nick,stype,params);
}
else
{
std::deque<std::string> params;
params.push_back(host);
type = linetype + line;
- DoOneToMany(source->nick,type,params);
+ DoOneToMany(source->nick,stype,params);
}
}
}