diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 20:16:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 20:16:43 +0000 |
commit | 0cf08426b2ff53d6fc1ca8125a57c79d87070b7b (patch) | |
tree | 36e30bdb829460fa63c9875e60b9d988b60d0747 /src/users.cpp | |
parent | 7a3d08f06cc22688a70c5274fe0dd489f93e9794 (diff) |
Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3602 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp index a0929d684..3b6a10197 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -357,7 +357,7 @@ std::string userrec::GetBuffer() void userrec::AddWriteBuf(std::string data) { - if (this->GetWriteError() != "") + if (*this->GetWriteError()) return; if (sendq.length() + data.length() > (unsigned)this->sendqmax) { @@ -405,9 +405,9 @@ void userrec::SetWriteError(std::string error) this->WriteError = error; } -std::string userrec::GetWriteError() +const char* userrec::GetWriteError() { - return this->WriteError; + return this->WriteError.c_str(); } void AddOper(userrec* user) |