aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-09 20:16:43 +0000
committerGravatar brain2006-03-09 20:16:43 +0000
commit0cf08426b2ff53d6fc1ca8125a57c79d87070b7b (patch)
tree36e30bdb829460fa63c9875e60b9d988b60d0747 /src/users.cpp
parentTidyup to pass some stuff by reference (much faster, no copy involved) (diff)
downloadinspircd++-0cf08426b2ff53d6fc1ca8125a57c79d87070b7b.tar.gz
inspircd++-0cf08426b2ff53d6fc1ca8125a57c79d87070b7b.tar.bz2
inspircd++-0cf08426b2ff53d6fc1ca8125a57c79d87070b7b.zip
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.cpp6
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)