From 5a1a0994f56f09ff1df37a18025502ecf2a122ca Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Nov 2005 20:26:45 +0000 Subject: Added KICK support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2022 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 157c944ef..d63c11cbf 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1433,6 +1433,19 @@ class ModuleSpanningTree : public Module } } + virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) + { + if (std::string(source->server) == Srv->GetServerName()) + { + log(DEBUG,"**** User on %s KICKs: %s %s",source->server,source->nick,user->nick); + std::deque params; + params.push_back(chan->name); + params.push_back(user->nick); + params.push_back(":"+reason); + DoOneToMany(source->nick,"KICK",params); + } + } + // note: the protocol does not allow direct umode +o except // via NICK with 8 params. sending OPERTYPE infers +o modechange // locally. -- cgit v1.2.3