mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-22 08:59:02 -04:00
Decraq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6919 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
bc34197205
commit
5246737b16
@ -16,27 +16,20 @@
|
|||||||
#include "users.h"
|
#include "users.h"
|
||||||
#include "channels.h"
|
#include "channels.h"
|
||||||
#include "modules.h"
|
#include "modules.h"
|
||||||
|
|
||||||
#include "hashcomp.h"
|
#include "hashcomp.h"
|
||||||
#include "inspircd.h"
|
#include "inspircd.h"
|
||||||
|
|
||||||
/* $ModDesc: Provides XMLSocket support for clients */
|
/* $ModDesc: Provides XMLSocket support for clients */
|
||||||
|
|
||||||
|
|
||||||
class ModuleXMLSocket : public Module
|
class ModuleXMLSocket : public Module
|
||||||
{
|
{
|
||||||
|
|
||||||
ConfigReader* Conf;
|
ConfigReader* Conf;
|
||||||
|
|
||||||
std::vector<int> listenports;
|
std::vector<int> listenports;
|
||||||
int clientactive;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
InspIRCd* PublicInstance;
|
|
||||||
|
|
||||||
ModuleXMLSocket(InspIRCd* Me)
|
ModuleXMLSocket(InspIRCd* Me)
|
||||||
: Module::Module(Me), PublicInstance(Me)
|
: Module::Module(Me)
|
||||||
{
|
{
|
||||||
OnRehash(NULL,"");
|
OnRehash(NULL,"");
|
||||||
}
|
}
|
||||||
@ -52,7 +45,6 @@ class ModuleXMLSocket : public Module
|
|||||||
}
|
}
|
||||||
|
|
||||||
listenports.clear();
|
listenports.clear();
|
||||||
clientactive = 0;
|
|
||||||
|
|
||||||
for (int i = 0; i < Conf->Enumerate("bind"); i++)
|
for (int i = 0; i < Conf->Enumerate("bind"); i++)
|
||||||
{
|
{
|
||||||
@ -65,7 +57,6 @@ class ModuleXMLSocket : public Module
|
|||||||
long portno = -1;
|
long portno = -1;
|
||||||
while ((portno = portrange.GetToken()))
|
while ((portno = portrange.GetToken()))
|
||||||
{
|
{
|
||||||
clientactive++;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (ServerInstance->Config->AddIOHook(portno, this))
|
if (ServerInstance->Config->AddIOHook(portno, this))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user