diff options
Diffstat (limited to 'src/modules/m_saquit.cpp')
-rw-r--r-- | src/modules/m_saquit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp index 8ef0a70ab..7b216a6e8 100644 --- a/src/modules/m_saquit.cpp +++ b/src/modules/m_saquit.cpp @@ -35,7 +35,7 @@ using namespace std; /* $ModDesc: Provides support for an SAQUIT command, exits user with a reason */ -static Server *Srv; + extern InspIRCd* ServerInstance; class cmd_saquit : public command_t @@ -52,7 +52,7 @@ class cmd_saquit : public command_t userrec* dest = ServerInstance->FindNick(parameters[0]); if (dest) { - 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; @@ -79,7 +79,7 @@ class ModuleSaquit : public Module { mycommand = new cmd_saquit(); - Srv->AddCommand(mycommand); + ServerInstance->AddCommand(mycommand); } virtual ~ModuleSaquit() |