diff options
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 12 |
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()); |