mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-02-21 10:40:05 +00:00
Account level changes
tied account levels to accounts instead of players. implemented account banning logic in db
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Database {
|
||||
int AccountID;
|
||||
std::string Password;
|
||||
int Selected;
|
||||
time_t BannedUntil;
|
||||
};
|
||||
struct Buddyship {
|
||||
int PlayerAId;
|
||||
@@ -52,6 +53,7 @@ namespace Database {
|
||||
void findAccount(Account* account, std::string login);
|
||||
/// returns ID, 0 if something failed
|
||||
int addAccount(std::string login, std::string password);
|
||||
void banAccount(int accountId, int days);
|
||||
void updateSelected(int accountId, int playerId);
|
||||
|
||||
bool validateCharacter(int characterID, int userID);
|
||||
|
||||
Reference in New Issue
Block a user