From e6d10930d668038d2367fbe815d000251a069e02 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 1 Jul 2012 21:25:54 +0200 Subject: Fix crash in ADDLINE handler when the command had no parameters --- src/modules/m_spanningtree/addline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/addline.cpp b/src/modules/m_spanningtree/addline.cpp index db9a7f2d6..5c3ad548d 100644 --- a/src/modules/m_spanningtree/addline.cpp +++ b/src/modules/m_spanningtree/addline.cpp @@ -30,7 +30,7 @@ bool TreeSocket::AddLine(const std::string &prefix, parameterlist ¶ms) { if (params.size() < 6) { - ServerInstance->SNO->WriteToSnoMask('d',"%s sent me a malformed ADDLINE of type %s.",prefix.c_str(),params[0].c_str()); + ServerInstance->SNO->WriteToSnoMask('d', "%s sent me a malformed ADDLINE", MyRoot->GetName().c_str()); return true; } -- cgit v1.2.3