From dcd533e8e6a81ef787939001a085932319db7785 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 20 Jul 2006 16:52:08 +0000 Subject: Move a confusing debug message within its conditional git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4461 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3