mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 18:47:35 +00:00
[Fix] Clear GuildOnlineStatus on world boot (#4306)
Ensure that the guild member online status is set to offline (0) when world boots.
This commit is contained in:
@@ -190,6 +190,17 @@ public:
|
||||
|
||||
return UpdateOne(db, m);
|
||||
}
|
||||
|
||||
static void ClearOnlineStatus(Database &db)
|
||||
{
|
||||
auto results = db.QueryDatabase(
|
||||
fmt::format(
|
||||
"UPDATE {} SET `online` = 0 "
|
||||
"WHERE `online` = 1;",
|
||||
TableName()
|
||||
)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EQEMU_GUILD_MEMBERS_REPOSITORY_H
|
||||
|
||||
Reference in New Issue
Block a user