summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 33e5e5031..0b1013a15 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2350,9 +2350,10 @@ class TreeSocket : public InspSocket
std::string sourceserv = this->myhost;
if (params.size() == 3)
{
+ userrec* source = Srv->FindNick(prefix);
userrec* user = Srv->FindNick(params[1]);
chanrec* chan = Srv->FindChannel(params[0]);
- if (user && chan)
+ if (user && chan && !source)
{
server_kick_channel(user,chan,(char*)params[2].c_str(),false);
}