summaryrefslogtreecommitdiff
path: root/src/modes/cmode_v.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/cmode_v.cpp')
-rw-r--r--src/modes/cmode_v.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/modes/cmode_v.cpp b/src/modes/cmode_v.cpp
index 7888666ca..c834c47fd 100644
--- a/src/modes/cmode_v.cpp
+++ b/src/modes/cmode_v.cpp
@@ -14,14 +14,9 @@
#include "hashcomp.h"
#include "modes/cmode_v.h"
-extern InspIRCd* ServerInstance;
-
-extern std::vector<Module*> modules;
-extern std::vector<ircd_module*> factory;
-extern int MODCOUNT;
extern time_t TIME;
-ModeChannelVoice::ModeChannelVoice() : ModeHandler('v', 1, 1, true, MODETYPE_CHANNEL, false)
+ModeChannelVoice::ModeChannelVoice(InspIRCd* Instance) : ModeHandler(Instance, 'v', 1, 1, true, MODETYPE_CHANNEL, false)
{
}
@@ -65,7 +60,7 @@ ModeAction ModeChannelVoice::OnModeChange(userrec* source, userrec* dest, chanre
std::string ModeChannelVoice::AddVoice(userrec *user,const char* dest,chanrec *chan,int status)
{
- userrec *d = ModeParser::SanityChecks(user,dest,chan,status);
+ userrec *d = ServerInstance->ModeGrok->SanityChecks(user,dest,chan,status);
if (d)
{
@@ -86,14 +81,14 @@ std::string ModeChannelVoice::AddVoice(userrec *user,const char* dest,chanrec *c
}
}
- return ModeParser::Grant(d,chan,UCMODE_VOICE);
+ return ServerInstance->ModeGrok->Grant(d,chan,UCMODE_VOICE);
}
return "";
}
std::string ModeChannelVoice::DelVoice(userrec *user,const char *dest,chanrec *chan,int status)
{
- userrec *d = ModeParser::SanityChecks(user,dest,chan,status);
+ userrec *d = ServerInstance->ModeGrok->SanityChecks(user,dest,chan,status);
if (d)
{
@@ -114,7 +109,7 @@ std::string ModeChannelVoice::DelVoice(userrec *user,const char *dest,chanrec *c
}
}
- return ModeParser::Revoke(d,chan,UCMODE_VOICE);
+ return ServerInstance->ModeGrok->Revoke(d,chan,UCMODE_VOICE);
}
return "";
}