summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-06 00:51:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-06 00:51:48 +0000
commit90f349cd108f2a522575d862100ed1fbc8e3ba75 (patch)
tree59ff85c95573f8104cc4a596c85dd7ddd2434ced /src/users.cpp
parentf938b078f8e283f52a4be36da584ee001030a247 (diff)
Fixed park crash bug #63 reported by ViaraiX
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1312 e03df62e-2008-0410-955e-edbf42e46eb7
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)))