summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-20 16:52:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-20 16:52:08 +0000
commitdcd533e8e6a81ef787939001a085932319db7785 (patch)
treeb14035b20ca1fa64b7a7b4d1f37aadc4009ad6ea /src
parent57bba0c632bf07cdce7810330dffdfa27ae14972 (diff)
Move a confusing debug message within its conditional
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4461 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 689ed3bf4..118d9cdcf 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -517,10 +517,12 @@ void userrec::FlushWriteBuf()
void userrec::SetWriteError(const std::string &error)
{
- log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
// don't try to set the error twice, its already set take the first string.
if (!this->WriteError.length())
+ {
+ log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
this->WriteError = error;
+ }
}
const char* userrec::GetWriteError()