summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 21:05:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 21:05:17 +0000
commit43ea331d1bde92a9f5d7cf0c434e09024cccbb61 (patch)
tree266bfbb080c6a228a5704faea8eb279bfb691926 /src/modules/m_spanningtree.cpp
parent537c7d617b9f840c66bef9a9f68b510bc312f997 (diff)
Was using OnUserPre* when i wanted to use OnUser*, which meant that remote servers werent picking up the changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2839 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index bc60fa82f..04fb63a8f 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2029,26 +2029,6 @@ class TreeSocket : public InspSocket
{
return this->ForceTopic(prefix,params);
}
- else if ((command == "KICK") && (!Srv->FindNick(prefix)))
- {
- /* Server kick */
- userrec* who = Srv->FindNick(params[1]);
- chanrec* where = Srv->FindChannel(params[0]);
- server_kick_channel(who, where, (char*)params[2].c_str(), false);
- std::string sourceserv = this->myhost;
- if (this->InboundServerName != "")
- {
- sourceserv = this->InboundServerName;
- }
- if (IsServer(prefix))
- {
- return DoOneToAllButSenderRaw(line,sourceserv,prefix,command,params);
- }
- else
- {
- return true;
- }
- }
else if (command == "REHASH")
{
return this->RemoteRehash(prefix,params);
@@ -3074,16 +3054,7 @@ class ModuleSpanningTree : public Module
virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason)
{
- if (!source)
- {
- /* Server kick (ugh) */
- std::deque<std::string> params;
- params.push_back(chan->name);
- params.push_back(user->nick);
- params.push_back(":"+reason);
- DoOneToMany(Srv->GetServerName(),"KICK",params);
- }
- else if (source->fd > -1)
+ if ((source) && (source->fd > -1))
{
std::deque<std::string> params;
params.push_back(chan->name);