summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 7348c6db3..73e0019aa 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -202,6 +202,8 @@ void userrec::ClearBuffer()
std::string userrec::GetBuffer()
{
+ if (recvq == "")
+ return "";
char* line = (char*)recvq.c_str();
std::string ret = "";
while ((*line != '\n') && (strlen(line)))