From b95d14170acc9face4da964d82cad46dfc0779da Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 9 Aug 2007 16:39:54 +0000 Subject: Show instead of an empty string on CAPAB failure, spotted by djGrrr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7691 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 c987cb590..c939f2349 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -414,7 +414,7 @@ void TreeSocket::SendError(const std::string &errormessage) { /* Display the error locally as well as sending it remotely */ this->WriteLine("ERROR :"+errormessage); - this->Instance->SNO->WriteToSnoMask('l',"Sent \2ERROR\2 to "+this->InboundServerName+": "+errormessage); + this->Instance->SNO->WriteToSnoMask('l',"Sent \2ERROR\2 to "+ (this->InboundServerName.empty() ? "" : this->InboundServerName) +": "+errormessage); /* One last attempt to make sure the error reaches its target */ this->FlushWriteBuffer(); } -- cgit v1.2.3