summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-26 14:21:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-26 14:21:54 +0000
commitc4c52af569d05b676613b6f48c4c7b010b5ac251 (patch)
tree866dcc2c54647d9c11d51fb6e314a9f654f89c44 /src/modules
parent858e3be0d822af2224b05094fe1255b4e009f555 (diff)
Damn string exceptions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2925 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ident.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 09b291144..0ea69d6d9 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -54,9 +54,10 @@ class RFC1413 : public InspSocket
virtual bool OnDataReady()
{
- std::string databuf = this->Read();
- if (databuf != "")
+ char* nbuf = this->Read();
+ if (nbuf)
{
+ std::string databuf = nbuf;
char ibuf[1024];
strlcpy(ibuf,databuf.c_str(),1024);
Srv->Log(DEBUG,"Received ident response");