diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-20 22:53:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-20 22:53:30 +0000 |
commit | 61768f4f3b8fba31bcb60d0fa5a49a4f21e7a8e0 (patch) | |
tree | 7aa842104a1171f627f5c7125694f2e284e27c4c /src/modules/m_spanningtree.cpp | |
parent | 8a37a9344b22a13d7657fde14e56412298494a40 (diff) |
User kicks being ignored!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3268 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 0b1013a15..cf69bc8f1 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2348,21 +2348,24 @@ class TreeSocket : public InspSocket else if (command == "KICK") { std::string sourceserv = this->myhost; - if (params.size() == 3) + userrec* source = Srv->FindNick(prefix); + if (!source) { - userrec* source = Srv->FindNick(prefix); - userrec* user = Srv->FindNick(params[1]); - chanrec* chan = Srv->FindChannel(params[0]); - if (user && chan && !source) + if (params.size() == 3) { - server_kick_channel(user,chan,(char*)params[2].c_str(),false); + 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); + } } + 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") { |