diff options
| author | Adam <Adam@anope.org> | 2011-04-22 03:16:11 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-05-16 04:06:17 -0400 |
| commit | c8c23158a4ff74822d6c7d201dc53d879e3d91e8 (patch) | |
| tree | 4bc9ae029691d5e7c03ebc1481683a010b733844 /modules/extra/ns_set_misc.cpp | |
| parent | 1782ce260c5bc214ec0b2e39257ab1371b68ae9c (diff) | |
Moved the core pseudo clients out into their own modules
Diffstat (limited to 'modules/extra/ns_set_misc.cpp')
| -rw-r--r-- | modules/extra/ns_set_misc.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/extra/ns_set_misc.cpp b/modules/extra/ns_set_misc.cpp index a1bf091c5..385fb9648 100644 --- a/modules/extra/ns_set_misc.cpp +++ b/modules/extra/ns_set_misc.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "nickserv.h" class CommandNSSetMisc : public Command { @@ -80,8 +81,8 @@ class NSSetMisc : public Module if (Commands.empty()) return; - Command *set = FindCommand(NickServ, "SET"); - Command *saset = FindCommand(NickServ, "SASET"); + Command *set = FindCommand(nickserv->Bot(), "SET"); + Command *saset = FindCommand(nickserv->Bot(), "SASET"); if (!set && !saset) return; @@ -120,7 +121,7 @@ class NSSetMisc : public Module Implementation i[] = { I_OnReload, I_OnNickInfo, I_OnDatabaseWriteMetadata, I_OnDatabaseReadMetadata }; ModuleManager::Attach(i, this, 4); - OnReload(true); + OnReload(); } ~NSSetMisc() @@ -128,12 +129,12 @@ class NSSetMisc : public Module RemoveAll(); } - void OnReload(bool) + void OnReload() { RemoveAll(); - Command *set = FindCommand(NickServ, "SET"); - Command *saset = FindCommand(NickServ, "SASET"); + Command *set = FindCommand(nickserv->Bot(), "SET"); + Command *saset = FindCommand(nickserv->Bot(), "SASET"); if (!set && !saset) return; |
