summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-20 22:56:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-20 22:56:46 +0000
commitf64333bbfd5cbb788bea2013a7dc4f0c5232d9ef (patch)
tree815c0830bd4b90cd775bbbc79a2955c40214b6e7 /src
parent61768f4f3b8fba31bcb60d0fa5a49a4f21e7a8e0 (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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp26
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")
{