summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-09 16:39:54 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-09 16:39:54 +0000
commitb95d14170acc9face4da964d82cad46dfc0779da (patch)
tree21f9b7c047de67346fcd949854bad03d8da3020d
parent8f96d16b4b65074f8b4e2c23f2215a6b711f9794 (diff)
Show <unknown> 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
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp2
1 files changed, 1 insertions, 1 deletions
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() ? "<unknown>" : this->InboundServerName) +": "+errormessage);
/* One last attempt to make sure the error reaches its target */
this->FlushWriteBuffer();
}