summaryrefslogtreecommitdiff
path: root/modules/extra/ns_set_misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/ns_set_misc.cpp')
-rw-r--r--modules/extra/ns_set_misc.cpp13
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;