From d10e9cce473fd0ef1e56b850e581b331e1d7494c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 29 Aug 2007 18:07:10 +0000 Subject: Swap around ERROR and SNONOTICE in SendError() so that the server doesnt try and send SNONOTICE to a connection that just closed on it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7987 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index 8a413ab8d..d89d454e2 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -410,8 +410,8 @@ std::string TreeSocket::ListDifference(const std::string &one, const std::string void TreeSocket::SendError(const std::string &errormessage) { /* Display the error locally as well as sending it remotely */ - this->WriteLine("ERROR :"+errormessage); Utils->Creator->RemoteMessage(NULL, "Sent \2ERROR\2 to %s: %s", (this->InboundServerName.empty() ? "" : this->InboundServerName.c_str()), errormessage.c_str()); + this->WriteLine("ERROR :"+errormessage); /* One last attempt to make sure the error reaches its target */ this->FlushWriteBuffer(); } -- cgit v1.2.3