summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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()