From 0d37047da236818ea62add6b510f4a52f0dd10e7 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 5 Oct 2006 19:59:55 +0000 Subject: [PATCH 1/1] Report invalid command name when invalid command is given in negotiation phase git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5424 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 654c52442..07e2c8977 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -3015,7 +3015,9 @@ class TreeSocket : public InspSocket } else { - this->WriteLine("ERROR :Invalid command in negotiation phase."); + std::string error("ERROR :Invalid command in negotiation phase: "); + error.append(command.c_str()); + this->WriteLine(error); return false; } break; -- 2.39.2