diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-03 04:00:30 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-03 04:00:30 +0000 |
commit | e7c3e34bcc90147b3ca85ea9e7711a2a19ce81ac (patch) | |
tree | b239056bdc9a18d7fbe862e6c2652fbb4034909f /src/modules | |
parent | 8b8923d15564caeeb14a6c5a218b9936a93c3ae4 (diff) |
Fix m_services_account logout by allowing meta with empty data field. Tracker: bug #226
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6618 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_services_account.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index c13d0e3b3..54a61d4df 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -283,8 +283,9 @@ class ModuleServicesAccount : public Module if ((target_type == TYPE_USER) && (extname == "accountname")) { userrec* dest = (userrec*)target; + /* logging them out? */ - if (extdata == "") + if (extdata.empty()) { std::string* account; dest->GetExt("accountname", account); diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index ac4684e70..b713a6661 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -361,8 +361,10 @@ bool TreeSocket::LocalPong(const std::string &prefix, std::deque<std::string> &p bool TreeSocket::MetaData(const std::string &prefix, std::deque<std::string> ¶ms) { - if (params.size() < 3) + if (params.size() < 2) return true; + else + params.push_back(""); TreeServer* ServerSource = Utils->FindServer(prefix); if (ServerSource) { |