summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 21:48:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 21:48:56 +0000
commitaa953912596e5fae066804ac6afbe9c44ceae50d (patch)
tree1b6db40658636f7da1849560000bc5e16d00bf61 /src/modules
parentb3961a3e36b20cbb1f17197203739fb52222a9ef (diff)
Tidy up here, same tidyup cannot go back to stable as it involves uids
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7984 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 249507799..7172656ee 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -1213,7 +1213,11 @@ bool TreeSocket::ProcessLine(std::string &line)
}
else
{
- prefix = this->GetName();
+ TreeServer* n = Utils->FindServer(GetName());
+ if (n)
+ prefix = n->GetID();
+ else
+ prefix = GetName();
}
if ((command == "MODE") && (params.size() >= 2))
@@ -1314,8 +1318,6 @@ bool TreeSocket::ProcessLine(std::string &line)
}
else if (command == "PING")
{
- if (prefix.empty())
- prefix = this->GetName();
/*
* We just got a ping from a server that's bursting.
* This can't be right, so set them to not bursting, and
@@ -1336,8 +1338,6 @@ bool TreeSocket::ProcessLine(std::string &line)
}
else if (command == "PONG")
{
- if (prefix.empty())
- prefix = this->GetName();
/*
* We just got a pong from a server that's bursting.
* This can't be right, so set them to not bursting, and
@@ -1377,10 +1377,6 @@ bool TreeSocket::ProcessLine(std::string &line)
}
else if (command == "SVSNICK")
{
- if (prefix.empty())
- {
- prefix = this->GetName();
- }
return this->ForceNick(prefix,params);
}
else if (command == "OPERQUIT")
@@ -1425,16 +1421,10 @@ bool TreeSocket::ProcessLine(std::string &line)
}
else if (command == "SVSJOIN")
{
- if (prefix.empty())
- {
- prefix = this->GetName();
- }
return this->ServiceJoin(prefix,params);
}
else if (command == "SVSPART")
{
- if (prefix.empty())
- prefix = this->GetName();
return this->ServicePart(prefix,params);
}
else if (command == "SQUIT")