From e11ae4f39cbcd169e725b680015d73c127f4a70e Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Thu, 29 Apr 2010 14:45:41 -0500 Subject: Don't use an empty direction when receiving a sourceless server command --- src/modules/m_spanningtree/treesocket2.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 4ea4a929c..ac824f99d 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -210,11 +210,7 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, User* who = ServerInstance->FindUUID(prefix); std::string direction; - if (who) - { - direction = who->server; - } - else + if (!who) { TreeServer* ServerSource = Utils->FindServer(prefix); if (prefix.empty()) @@ -223,7 +219,6 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, if (ServerSource) { who = ServerSource->ServerUser; - direction = prefix; } else { @@ -238,6 +233,7 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, } // Make sure prefix is still good + direction = who->server; prefix = who->uuid; /* -- cgit v1.2.3