summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c15a3331b..8bde9ea53 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -89,7 +89,7 @@ std::string userrec::ProcessNoticeMasks(const char *sm)
{
bool adding = true, oldadding = false;
const char *c = sm;
- std::string output = "";
+ std::string output;
ServerInstance->Log(DEBUG,"Process notice masks");
@@ -367,7 +367,7 @@ char* userrec::MakeWildHost()
int userrec::ReadData(void* buffer, size_t size)
{
- if (this->fd > -1)
+ if (IS_LOCAL(this))
{
return read(this->fd, buffer, size);
}