From 17b5f19bf1476cb22ccb409145600dac7209f823 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 26 Nov 2005 15:47:19 +0000 Subject: Added start of spanning tree system TEST MODULE, tested outbound connections Outbound connections function OK. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1956 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 0c2f36f0d..cb0f1e634 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -377,6 +377,18 @@ void Server::AddSocket(InspSocket* sock) module_sockets.push_back(sock); } +void Server::DelSocket(InspSocket* sock) +{ + for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) + { + if (*a == sock) + { + module_sockets.erase(a); + return; + } + } +} + void Server::SendOpers(std::string s) { WriteOpers("%s",s.c_str()); -- cgit v1.2.3