From c8c23158a4ff74822d6c7d201dc53d879e3d91e8 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 22 Apr 2011 03:16:11 -0400 Subject: Moved the core pseudo clients out into their own modules --- modules/core/ns_saset_noexpire.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/core/ns_saset_noexpire.cpp') diff --git a/modules/core/ns_saset_noexpire.cpp b/modules/core/ns_saset_noexpire.cpp index 532d6c8fe..e1bbaf87f 100644 --- a/modules/core/ns_saset_noexpire.cpp +++ b/modules/core/ns_saset_noexpire.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "nickserv.h" class CommandNSSASetNoexpire : public Command { @@ -70,14 +71,17 @@ class NSSASetNoexpire : public Module this->SetAuthor("Anope"); this->SetType(CORE); - Command *c = FindCommand(NickServ, "SASET"); + if (!nickserv) + throw ModuleException("NickServ is not loaded!"); + + Command *c = FindCommand(nickserv->Bot(), "SASET"); if (c) c->AddSubcommand(this, &commandnssasetnoexpire); } ~NSSASetNoexpire() { - Command *c = FindCommand(NickServ, "SASET"); + Command *c = FindCommand(nickserv->Bot(), "SASET"); if (c) c->DelSubcommand(&commandnssasetnoexpire); } -- cgit