#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,
{
}
- 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");