diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-13 03:12:29 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-12-02 19:39:46 +0100 |
commit | ac7defcd3e52695dcf5e5150e9fe3e1624205e64 (patch) | |
tree | da428a276376986ca64390d5cf5662083f8197c6 /src/modules/extra | |
parent | 6dd61235fc8cb67ba9919b84be42c966b7273fac (diff) |
Attach to events and register services in init()
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ldapoper.cpp | 4 | ||||
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ldapoper.cpp b/src/modules/extra/m_ldapoper.cpp index 84a3b8729..e8455529d 100644 --- a/src/modules/extra/m_ldapoper.cpp +++ b/src/modules/extra/m_ldapoper.cpp @@ -45,8 +45,8 @@ class ModuleLDAPAuth : public Module LDAP *conn; public: - ModuleLDAPAuth() - { + void init() + { conn = NULL; Implementation eventlist[] = { I_OnRehash, I_OnPassCompare }; ServerInstance->Modules->Attach(eventlist, this, 2); diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 71f494dd9..ab6908d17 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -152,7 +152,7 @@ class SQLConn : public SQLProvider, public EventHandler { if (!DoConnect()) { - ServerInstance->Logs->Log("m_pgsql",DEFAULT, "WARNING: Could not connect to database " + tag->getString("id")); + ServerInstance->Logs->Log("m_pgsql",DEFAULT, "WARNING: Could not connect to database " + tag->getString("id")); DelayReconnect(); } } |