Channel* channel = ServerInstance->FindChan(parameters[0]);
const char* reason = "";
- if (dest && channel)
+ if ((dest) && (dest->registered == REG_ALL) && (channel))
{
if (parameters.size() > 2)
{
if (IS_LOCAL(user))
{
/* Locally issued command; send the snomasks */
- ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]);
+ ServerInstance->SNO->WriteGlobalSno('a', user->nick + " SAKICKed " + dest->nick + " on " + parameters[0]);
}
return CMD_SUCCESS;
ModuleSakick()
: cmd(this)
{
- ServerInstance->AddCommand(&cmd);
}
- virtual ~ModuleSakick()
+ void init()
{
+ ServerInstance->Modules->AddService(cmd);
}
virtual Version GetVersion()
{
return Version("Provides a SAKICK command", VF_OPTCOMMON|VF_VENDOR);
}
-
};
MODULE_INIT(ModuleSakick)
-