diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-06 13:24:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-06 13:24:42 +0000 |
commit | 618e73034f040ccffb41212e8dbcdf0c5b48b7e1 (patch) | |
tree | 1da19852b7453eeaff5f6433f99685247c1c6210 /src/modules | |
parent | 9e3e292946c075ae962190ebc689287e941915c5 (diff) |
Fixed GLINE/KLINE etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2221 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 9 |
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); } } } |