summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-21 23:07:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-21 23:07:33 +0000
commitccd95e668a3bcbd26c4cd2984cdd8809347f9815 (patch)
tree75f3efe183e01298e4f5571d10ede66ccea43f0a /src/modules/m_spanningtree
parent8d4d9b709d00f281744667a8f6b73ff5455360e9 (diff)
Only valid targets for encap are now server ids
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9162 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/encap.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/modules/m_spanningtree/encap.cpp b/src/modules/m_spanningtree/encap.cpp
index 972a7fd20..9335c0c7f 100644
--- a/src/modules/m_spanningtree/encap.cpp
+++ b/src/modules/m_spanningtree/encap.cpp
@@ -32,29 +32,13 @@ bool TreeSocket::Encap(const std::string &prefix, std::deque<std::string> &param
Event event((char*) &params, (Module*)this->Utils->Creator, "encap_received");
event.Send(Instance);
}
- else
- {
- User* u = Instance->FindNick(params[0]);
-
- if (u && IS_LOCAL(u))
- {
- Event event((char*) &params, (Module*)this->Utils->Creator, "encap_received");
- event.Send(Instance);
- }
-
- return true;
- }
if (params[0].find('*') != std::string::npos)
{
- User* u = Instance->FindNick(params[0]);
- if (u)
- Utils->DoOneToAllButSender(prefix, "ENCAP", params, u->server);
- else
- Utils->DoOneToAllButSender(prefix, "ENCAP", params, params[0]);
+ Utils->DoOneToAllButSender(prefix, "ENCAP", params, prefix);
}
else
- Utils->DoOneToOne(prefix, "ENCAP", params, prefix);
+ Utils->DoOneToOne(prefix, "ENCAP", params, params[0]);
}
return true;
}