From 09d9c1c5ff9963b93e1e8ebf1578cbf0584eb6f0 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 28 Aug 2006 13:37:57 +0000 Subject: Add DelFd calls when squitting a server or pinging it out git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5042 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 4db91a578..23d5a37eb 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -3642,6 +3642,7 @@ class ModuleSpanningTree : public Module ServerInstance->Log(DEBUG,"Splitting server %s",s->GetName().c_str()); ServerInstance->WriteOpers("*** SQUIT: Server \002%s\002 removed from network by %s",parameters[0],user->nick); sock->Squit(s,"Server quit by "+std::string(user->nick)+"!"+std::string(user->ident)+"@"+std::string(user->host)); + ServerInstance->SE->DelFd(sock); } else { @@ -3721,6 +3722,7 @@ class ModuleSpanningTree : public Module // they didnt answer, boot them ServerInstance->WriteOpers("*** Server \002%s\002 pinged out",serv->GetName().c_str()); sock->Squit(serv,"Ping timeout"); + ServerInstance->SE->DelFd(sock); return; } } -- cgit v1.2.3