summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-26 15:47:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-26 15:47:19 +0000
commit17b5f19bf1476cb22ccb409145600dac7209f823 (patch)
tree54ddfc6c923517600539a25dbc842fae11a48e20 /src/modules.cpp
parent0f907d2b8ba69d80d0f605ecb707efcf1426204a (diff)
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
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp12
1 files changed, 12 insertions, 0 deletions
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<InspSocket*>::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());