summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-24 02:44:49 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-24 02:44:49 +0000
commit18f75b32d5d4b456496e65c3d472567bc02e6e17 (patch)
tree887df2c719ab62829bb5cbfb0c133ab14ffd030f
parent998304694552a2294018f2dd5a2babd4bdc023b4 (diff)
Use UID/SID as the source for ENCAP commands, not server name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12321 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree/encap.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/encap.cpp b/src/modules/m_spanningtree/encap.cpp
index 9d1680155..9770ec84e 100644
--- a/src/modules/m_spanningtree/encap.cpp
+++ b/src/modules/m_spanningtree/encap.cpp
@@ -18,10 +18,6 @@
#include "treeserver.h"
#include "utils.h"
-/* $ModDep: m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
-
-
-
/** ENCAP */
void TreeSocket::Encap(User* who, parameterlist &params)
{
@@ -38,10 +34,10 @@ void TreeSocket::Encap(User* who, parameterlist &params)
if (params[0].find('*') != std::string::npos)
{
- Utils->DoOneToAllButSender(who->server, "ENCAP", params, who->server);
+ Utils->DoOneToAllButSender(who->uuid, "ENCAP", params, who->server);
}
else
- Utils->DoOneToOne(who->server, "ENCAP", params, params[0]);
+ Utils->DoOneToOne(who->uuid, "ENCAP", params, params[0]);
}
}