From 34f7d0bc1b9bcd8f358a8abb4f798358d14b58cb Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 28 Mar 2008 14:45:12 +0000 Subject: Don't desync when blanking metadata with remote servers (seperate bug) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9199 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_swhois.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 10e001f81..db5d60cd7 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -208,6 +208,9 @@ class ModuleSWhois : public Module { user->Shrink("swhois"); delete text; + + if (extdata.empty()) + return; // XXX does the command parser even allow sending blank mdata? it needs to here! -- w00t } text2 = new std::string(extdata); -- cgit v1.2.3