active = false;
}
- CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user) CXX11_OVERRIDE
+ CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE
{
// Make sure the channel name is allowable.
if (!ServerInstance->IsChannel(parameters[0]))
ServerInstance->SNO->WriteGlobalSno('a', user->nick+" used OJOIN to join "+channel->name);
if (notice)
- {
- const std::string msg = user->nick + " joined on official network business.";
- channel->WriteNotice(msg);
- ServerInstance->PI->SendChannelNotice(channel, 0, msg);
- }
+ channel->WriteNotice(user->nick + " joined on official network business.");
}
else
{
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);
}
};