diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-20 22:56:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-20 22:56:46 +0000 |
commit | f64333bbfd5cbb788bea2013a7dc4f0c5232d9ef (patch) | |
tree | 815c0830bd4b90cd775bbbc79a2955c40214b6e7 | |
parent | 61768f4f3b8fba31bcb60d0fa5a49a4f21e7a8e0 (diff) |
Lets fix it right this time (and annoy ol with more tweaks)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3269 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index cf69bc8f1..a70cb4976 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2345,27 +2345,23 @@ class TreeSocket : public InspSocket { return this->Time(prefix,params); } - else if (command == "KICK") + else if ((command == "KICK") && (IsServer(prefix))) { std::string sourceserv = this->myhost; - userrec* source = Srv->FindNick(prefix); - if (!source) + if (params.size() == 3) { - if (params.size() == 3) + userrec* user = Srv->FindNick(params[1]); + chanrec* chan = Srv->FindChannel(params[0]); + if (user && chan) { - userrec* user = Srv->FindNick(params[1]); - chanrec* chan = Srv->FindChannel(params[0]); - if (user && chan) - { - server_kick_channel(user,chan,(char*)params[2].c_str(),false); - } + server_kick_channel(user,chan,(char*)params[2].c_str(),false); } - if (this->InboundServerName != "") - { - sourceserv = this->InboundServerName; - } - return DoOneToAllButSenderRaw(line,sourceserv,prefix,command,params); } + if (this->InboundServerName != "") + { + sourceserv = this->InboundServerName; + } + return DoOneToAllButSenderRaw(line,sourceserv,prefix,command,params); } else if (command == "SVSJOIN") { |