CmdResult Handle (const std::vector<std::string>& parameters, User *user)
{
User* dest = ServerInstance->FindNick(parameters[0]);
- if (dest)
+ if ((dest) && (!IS_SERVER(dest)) && (dest->registered == REG_ALL))
{
if (ServerInstance->ULine(dest->server))
{
ModuleSaquit()
: cmd(this)
{
- ServerInstance->AddCommand(&cmd);
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
}
virtual ~ModuleSaquit()