]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sqlauth.cpp
Add m_clearchan which removes users from a channel without sending n*(n+1)/2 QUIT...
[user/henk/code/inspircd.git] / src / modules / m_sqlauth.cpp
index 4e8b178b94e65ea67855e1d8ca451a33172a362f..0c055a0851e605d7212bd912e14a5c36f14019bf 100644 (file)
@@ -21,8 +21,6 @@
 #include "modules/sql.h"
 #include "modules/hash.h"
 
-/* $ModDesc: Allow/Deny connections based upon an arbitrary SQL table */
-
 enum AuthState {
        AUTH_STATE_NONE = 0,
        AUTH_STATE_BUSY = 1,
@@ -83,15 +81,7 @@ class ModuleSQLAuth : public Module
        {
        }
 
-       void init() CXX11_OVERRIDE
-       {
-               ServerInstance->Modules->AddService(pendingExt);
-               OnRehash(NULL);
-               Implementation eventlist[] = { I_OnCheckReady, I_OnRehash, I_OnUserRegister };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
-       }
-
-       void OnRehash(User* user) CXX11_OVERRIDE
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                ConfigTag* conf = ServerInstance->Config->ConfValue("sqlauth");
                std::string dbid = conf->getString("dbid");