user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server);
ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick.c_str());
/* Dont send to the network */
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
};
user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server);
ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str());
/* Dont send to the network */
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
};
ResetLocked();
}
- virtual int OnUserRegister(User* user)
+ virtual ModResult OnUserRegister(User* user)
{
if (locked)
{
ServerInstance->Users->QuitUser(user, "Server is temporarily closed. Please try again later.");
- return 1;
+ return MOD_RES_DENY;
}
- return 0;
+ return MOD_RES_PASSTHRU;
}
- virtual bool OnCheckReady(User* user)
+ virtual ModResult OnCheckReady(User* user)
{
- return !locked;
+ return locked ? MOD_RES_DENY : MOD_RES_PASSTHRU;
}
virtual Version GetVersion()