diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-04-29 14:45:41 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-04-29 14:45:41 -0500 |
commit | e11ae4f39cbcd169e725b680015d73c127f4a70e (patch) | |
tree | c9b527c4fba9b242d0f3bb1404a82bfbebe9453c /src/modules/m_spanningtree | |
parent | 05c2faebaf9625be516531a666ee8e20ec1c1e27 (diff) |
Don't use an empty direction when receiving a sourceless server command
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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; /* |