From ccd95e668a3bcbd26c4cd2984cdd8809347f9815 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 21 Mar 2008 23:07:33 +0000 Subject: 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 --- src/modules/m_spanningtree/encap.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src/modules/m_spanningtree') 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 ¶m Event event((char*) ¶ms, (Module*)this->Utils->Creator, "encap_received"); event.Send(Instance); } - else - { - User* u = Instance->FindNick(params[0]); - - if (u && IS_LOCAL(u)) - { - Event event((char*) ¶ms, (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; } -- cgit v1.2.3