summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_services_account.cpp3
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp4
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> &params)
{
- if (params.size() < 3)
+ if (params.size() < 2)
return true;
+ else
+ params.push_back("");
TreeServer* ServerSource = Utils->FindServer(prefix);
if (ServerSource)
{