diff options
Diffstat (limited to 'src/modules/m_sapart.cpp')
-rw-r--r-- | src/modules/m_sapart.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp index 04286f6fc..b8a218bc3 100644 --- a/src/modules/m_sapart.cpp +++ b/src/modules/m_sapart.cpp @@ -26,7 +26,7 @@ using namespace std; /* $ModDesc: Provides support for unreal-style SAPART command */ -static Server *Srv; + extern InspIRCd* ServerInstance; class cmd_sapart : public command_t @@ -44,7 +44,7 @@ class cmd_sapart : public command_t chanrec* channel = ServerInstance->FindChan(parameters[1]); if (dest && channel) { - if (Srv->IsUlined(dest->server)) + if (ServerInstance->IsUlined(dest->server)) { user->WriteServ("990 %s :Cannot use an SA command on a u-lined client",user->nick); return; @@ -66,7 +66,7 @@ class ModuleSapart : public Module { mycommand = new cmd_sapart(); - Srv->AddCommand(mycommand); + ServerInstance->AddCommand(mycommand); } virtual ~ModuleSapart() |