X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_ojoin.cpp;h=c0626ec695357189dd4e4f6e343259176fe35349;hb=e59cb85871f75b7603c63c6cd274d57536cf6794;hp=2573e8b78e93636c53115ca06c43d2d76832fedf;hpb=e0931343939bc15ea9aaa884eab61d80827074c6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 2573e8b78..c0626ec69 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -34,11 +34,11 @@ class CommandOjoin : public SplitCommand : SplitCommand(parent, "OJOIN", 1) , npmh(&mode) { - flags_needed = 'o'; Penalty = 0; syntax = ""; + flags_needed = 'o'; syntax = ""; active = false; } - CmdResult HandleLocal(const std::vector& parameters, LocalUser* user) + CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE { // Make sure the channel name is allowable. if (!ServerInstance->IsChannel(parameters[0])) @@ -89,10 +89,10 @@ class NetworkPrefix : public PrefixMode NetworkPrefix(Module* parent, char NPrefix) : PrefixMode(parent, "official-join", 'Y', NETWORK_VALUE, NPrefix) { - levelrequired = INT_MAX; + ranktoset = ranktounset = UINT_MAX; } - ModResult AccessCheck(User* source, Channel* channel, std::string ¶meter, bool adding) + ModResult AccessCheck(User* source, Channel* channel, std::string ¶meter, bool adding) CXX11_OVERRIDE { User* theuser = ServerInstance->FindNick(parameter); // remove own privs? @@ -150,14 +150,14 @@ class ModuleOjoin : public Module return MOD_RES_DENY; } - void Prioritize() + void Prioritize() CXX11_OVERRIDE { ServerInstance->Modules->SetPriority(this, I_OnUserPreJoin, PRIORITY_FIRST); } Version GetVersion() CXX11_OVERRIDE { - return Version("Network Business Join", VF_VENDOR); + return Version("Provides the OJOIN command, allows an oper to join a channel and be immune to kicks", VF_VENDOR); } };