diff options
| author | Adam <Adam@anope.org> | 2012-01-25 15:48:07 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-01-25 15:48:07 -0500 |
| commit | 52eaa7d6d61e3373340fd5a69b92b0fb3b5609e0 (patch) | |
| tree | 428f2b440ab5675ae3a9c19ae5b813f132497c79 /modules/extra | |
| parent | e88e37c59b45cc43b714d1d28719eb3c2ca9579a (diff) | |
Windows
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/ldap.h | 4 | ||||
| -rw-r--r-- | modules/extra/m_dnsbl.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_ldap.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_ldap_oper.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_proxyscan.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_xmlrpc.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_xmlrpc_main.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/sql.h | 4 | ||||
| -rw-r--r-- | modules/extra/ssl.h | 4 | ||||
| -rw-r--r-- | modules/extra/xmlrpc.h | 4 |
11 files changed, 20 insertions, 20 deletions
diff --git a/modules/extra/ldap.h b/modules/extra/ldap.h index 96b6eb5e4..c21d60b05 100644 --- a/modules/extra/ldap.h +++ b/modules/extra/ldap.h @@ -112,10 +112,10 @@ class LDAPInterface virtual void OnError(const LDAPResult &err) { } }; -class LDAPProvider : public Service<Base> +class LDAPProvider : public Service { public: - LDAPProvider(Module *c, const Anope::string &n) : Service<Base>(c, n) { } + LDAPProvider(Module *c, const Anope::string &n) : Service(c, "LDAPProvider", n) { } /** Attempt to bind to the LDAP server as an admin * @param i The LDAPInterface the result is sent to diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index dea6a951d..285871cc6 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -7,7 +7,7 @@ #include "module.h" -static service_reference<XLineManager> akills("xlinemanager/sgline"); +static service_reference<XLineManager> akills("XLineManager", "xlinemanager/sgline"); struct Blacklist { diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp index bdb573675..835215533 100644 --- a/modules/extra/m_ldap.cpp +++ b/modules/extra/m_ldap.cpp @@ -214,8 +214,8 @@ class LDAPService : public LDAPProvider, public Thread, public Condition static struct timeval tv = { 1, 0 }; LDAPMessage *result; - int type = ldap_result(this->con, LDAP_RES_ANY, 1, &tv, &result); - if (type <= 0 || this->GetExitState()) + int rtype = ldap_result(this->con, LDAP_RES_ANY, 1, &tv, &result); + if (rtype <= 0 || this->GetExitState()) continue; int cur_id = ldap_msgid(result); diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index 148ee8250..02fc05649 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -163,7 +163,7 @@ class OnRegisterInterface : public LDAPInterface class NSIdentifyLDAP : public Module { - service_reference<LDAPProvider, Base> ldap; + service_reference<LDAPProvider> ldap; IdentifyInterface iinterface; OnIdentifyInterface oninterface; OnRegisterInterface orinterface; @@ -176,7 +176,7 @@ class NSIdentifyLDAP : public Module Anope::string disable_reason; public: NSIdentifyLDAP(const Anope::string &modname, const Anope::string &creator) : - Module(modname, creator, SUPPORTED), ldap("ldap/main"), iinterface(this), oninterface(this), orinterface(this) + Module(modname, creator, SUPPORTED), ldap("LDAPProvider", "ldap/main"), iinterface(this), oninterface(this), orinterface(this) { this->SetAuthor("Anope"); diff --git a/modules/extra/m_ldap_oper.cpp b/modules/extra/m_ldap_oper.cpp index 59ad0e670..b25dd8eff 100644 --- a/modules/extra/m_ldap_oper.cpp +++ b/modules/extra/m_ldap_oper.cpp @@ -76,7 +76,7 @@ class IdentifyInterface : public LDAPInterface class LDAPOper : public Module { - service_reference<LDAPProvider, Base> ldap; + service_reference<LDAPProvider> ldap; IdentifyInterface iinterface; Anope::string binddn; @@ -85,7 +85,7 @@ class LDAPOper : public Module Anope::string filter; public: LDAPOper(const Anope::string &modname, const Anope::string &creator) : - Module(modname, creator, SUPPORTED), ldap("ldap/main"), iinterface(this) + Module(modname, creator, SUPPORTED), ldap("LDAPProvider", "ldap/main"), iinterface(this) { this->SetAuthor("Anope"); diff --git a/modules/extra/m_proxyscan.cpp b/modules/extra/m_proxyscan.cpp index f74469a5c..6b3153e32 100644 --- a/modules/extra/m_proxyscan.cpp +++ b/modules/extra/m_proxyscan.cpp @@ -102,7 +102,7 @@ class ProxyConnect : public ConnectionSocket } } }; -service_reference<XLineManager> ProxyConnect::akills("xlinemanager/sgline"); +service_reference<XLineManager> ProxyConnect::akills("XLineManager", "xlinemanager/sgline"); std::set<ProxyConnect *> ProxyConnect::proxies; class HTTPProxyConnect : public ProxyConnect, public BufferedSocket diff --git a/modules/extra/m_xmlrpc.cpp b/modules/extra/m_xmlrpc.cpp index 01cbc7c85..215be9d77 100644 --- a/modules/extra/m_xmlrpc.cpp +++ b/modules/extra/m_xmlrpc.cpp @@ -220,12 +220,12 @@ class ModuleXMLRPC; static ModuleXMLRPC *me; class ModuleXMLRPC : public Module { - service_reference<SSLService, Base> sslref; + service_reference<SSLService> sslref; public: MyXMLRPCServiceInterface xmlrpcinterface; - ModuleXMLRPC(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED), sslref("ssl"), xmlrpcinterface(this, "xmlrpc") + ModuleXMLRPC(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED), sslref("SSLService", "ssl"), xmlrpcinterface(this, "xmlrpc") { me = this; diff --git a/modules/extra/m_xmlrpc_main.cpp b/modules/extra/m_xmlrpc_main.cpp index 98677761c..7498a3059 100644 --- a/modules/extra/m_xmlrpc_main.cpp +++ b/modules/extra/m_xmlrpc_main.cpp @@ -256,12 +256,12 @@ class MyXMLRPCEvent : public XMLRPCEvent class ModuleXMLRPCMain : public Module { - service_reference<XMLRPCServiceInterface, Base> xmlrpc; + service_reference<XMLRPCServiceInterface> xmlrpc; MyXMLRPCEvent stats; public: - ModuleXMLRPCMain(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED), xmlrpc("xmlrpc") + ModuleXMLRPCMain(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED), xmlrpc("XMLRPCServiceInterface", "xmlrpc") { if (!xmlrpc) throw ModuleException("Unable to find xmlrpc reference, is m_xmlrpc loaded?"); diff --git a/modules/extra/sql.h b/modules/extra/sql.h index 14272ed90..40c893722 100644 --- a/modules/extra/sql.h +++ b/modules/extra/sql.h @@ -108,10 +108,10 @@ class SQLInterface /** Class providing the SQL service, modules call this to execute queries */ -class SQLProvider : public Service<Base> +class SQLProvider : public Service { public: - SQLProvider(Module *c, const Anope::string &n) : Service<Base>(c, n) { } + SQLProvider(Module *c, const Anope::string &n) : Service(c, "SQLProvider", n) { } virtual void Run(SQLInterface *i, const SQLQuery &query) = 0; diff --git a/modules/extra/ssl.h b/modules/extra/ssl.h index 5b404067a..6eb97582c 100644 --- a/modules/extra/ssl.h +++ b/modules/extra/ssl.h @@ -1,8 +1,8 @@ -class SSLService : public Service<Base> +class SSLService : public Service { public: - SSLService(Module *o, const Anope::string &n) : Service<Base>(o, n) { } + SSLService(Module *o, const Anope::string &n) : Service(o, "SSLService", n) { } virtual void Init(Socket *s) = 0; }; diff --git a/modules/extra/xmlrpc.h b/modules/extra/xmlrpc.h index a76400728..ef300e583 100644 --- a/modules/extra/xmlrpc.h +++ b/modules/extra/xmlrpc.h @@ -55,10 +55,10 @@ class XMLRPCEvent virtual void Run(XMLRPCServiceInterface *iface, XMLRPCClientSocket *source, XMLRPCRequest *request) = 0; }; -class XMLRPCServiceInterface : public Service<Base> +class XMLRPCServiceInterface : public Service { public: - XMLRPCServiceInterface(Module *creator, const Anope::string &sname) : Service<Base>(creator, sname) { } + XMLRPCServiceInterface(Module *creator, const Anope::string &sname) : Service(creator, "XMLRPCServiceInterface", sname) { } virtual void Register(XMLRPCEvent *event) = 0; |
