diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-17 00:31:42 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-17 00:31:42 +0000 |
commit | 7af9e42d2150e17139342cb56c3617dc9b75859a (patch) | |
tree | 195f633d774c80f612e126d99ac8324ee0acaf55 /src | |
parent | abd083b1e348b279ee354f7973307c5e29428388 (diff) |
Hook events correctly in constructor.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2105 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/os_news.c | 1 | ||||
-rw-r--r-- | src/modules/ns_maxemail.c | 5 | ||||
-rw-r--r-- | src/modules/os_ignore_db.c | 1 | ||||
-rw-r--r-- | src/modules/os_info.c | 1 |
4 files changed, 5 insertions, 3 deletions
diff --git a/src/core/os_news.c b/src/core/os_news.c index a8fdbfabf..1e122d303 100644 --- a/src/core/os_news.c +++ b/src/core/os_news.c @@ -378,6 +378,7 @@ class OSNews : public Module OSOperNews = new CommandOSOperNews(); this->AddCommand(OPERSERV, OSOperNews, MOD_UNIQUE); this->AddCommand(OPERSERV, new CommandOSRandomNews(), MOD_UNIQUE); + ModuleManager::Attach(I_OnReload, this); this->SetOperHelp(myOperServHelp); } diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index 5a6e4ff7e..4ca17e79d 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -77,9 +77,6 @@ class NSMaxEmail : public Module public: NSMaxEmail(const std::string &modname, const std::string &creator) : Module(modname, creator) { - EvtHook *evt; - int status; - me = this; this->SetAuthor(AUTHOR); @@ -89,6 +86,8 @@ class NSMaxEmail : public Module this->AddCommand(NICKSERV, new CommandNSRegister(), MOD_HEAD); this->AddCommand(NICKSERV, new CommandNSSet(), MOD_HEAD); + ModuleManager::Attach(I_OnReload, this); + my_load_config(); const char *langtable_en_us[] = { diff --git a/src/modules/os_ignore_db.c b/src/modules/os_ignore_db.c index 2497f3b94..7881d7d22 100644 --- a/src/modules/os_ignore_db.c +++ b/src/modules/os_ignore_db.c @@ -98,6 +98,7 @@ class OSIgnoreDB : public Module load_config(); /* Load the ignore database and re-add them to anopes ignorelist. */ load_ignore_db(); + ModuleManager::Attach(I_OnReload, this); } ~OSIgnoreDB() diff --git a/src/modules/os_info.c b/src/modules/os_info.c index f6e0d3318..5a9edbed9 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -314,6 +314,7 @@ class OSInfo : public Module this->SetChanHelp(mMainChanHelp); mLoadData(); + ModuleManager::Attach(I_OnReload, this); const char* langtable_en_us[] = { /* OINFO_SYNTAX */ |