summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-04 23:27:03 +0200
committerattilamolnar <attilamolnar@hush.com>2012-10-03 00:30:03 +0200
commitc25fc2cacc957d0defc2901b9a1e5a174a270ecb (patch)
tree4fd29649f0c1fdeff70412475327b38d0426f880 /src/modules/m_spanningtree/main.cpp
parent62c54789a468b7642147cf338a12df7a8ac59971 (diff)
m_spanningtree Fill a parameterlist in OnAddLine/OnDelLine
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 34a6437de..013bbce88 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -833,11 +833,13 @@ void ModuleSpanningTree::OnAddLine(User* user, XLine *x)
if (!x->IsBurstable() || loopCall)
return;
- char data[MAXBUF];
- snprintf(data,MAXBUF,"%s %s %s %lu %lu :%s", x->type.c_str(), x->Displayable(),
- ServerInstance->Config->ServerName.c_str(), (unsigned long)x->set_time, (unsigned long)x->duration, x->reason.c_str());
parameterlist params;
- params.push_back(data);
+ params.push_back(x->type);
+ params.push_back(x->Displayable());
+ params.push_back(ServerInstance->Config->ServerName);
+ params.push_back(ConvToStr(x->set_time));
+ params.push_back(ConvToStr(x->duration));
+ params.push_back(":" + x->reason);
if (!user)
{
@@ -856,10 +858,9 @@ void ModuleSpanningTree::OnDelLine(User* user, XLine *x)
if (!x->IsBurstable() || loopCall)
return;
- char data[MAXBUF];
- snprintf(data,MAXBUF,"%s %s", x->type.c_str(), x->Displayable());
parameterlist params;
- params.push_back(data);
+ params.push_back(x->type);
+ params.push_back(x->Displayable());
if (!user)
{