mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Drop db logging, up stale connections
This commit is contained in:
+1
-1
@@ -2590,7 +2590,7 @@ void Client::SetPVP(bool toggle, bool message) {
|
||||
void Client::Kick(const std::string &reason) {
|
||||
client_state = CLIENT_KICKED;
|
||||
|
||||
database.CreateKickEvent(GetName(), reason);
|
||||
Log(Logs::General, Logs::Client_Login, "Client [%s] kicked, reason [%s]", GetCleanName(), reason.c_str());
|
||||
}
|
||||
|
||||
void Client::WorldKick() {
|
||||
|
||||
@@ -3835,14 +3835,6 @@ void ZoneDatabase::UpdateItemRecastTimestamps(uint32 char_id, uint32 recast_type
|
||||
QueryDatabase(query);
|
||||
}
|
||||
|
||||
void ZoneDatabase::CreateKickEvent(const std::string &character_name, const std::string &reason)
|
||||
{
|
||||
std::string query =
|
||||
StringFormat("INSERT INTO character_kick_events (Name, Reason) VALUES ('%s', '%s')", character_name.c_str(), reason.c_str());
|
||||
|
||||
QueryDatabase(query);
|
||||
}
|
||||
|
||||
void ZoneDatabase::LoadPetInfo(Client *client)
|
||||
{
|
||||
|
||||
|
||||
@@ -292,7 +292,6 @@ public:
|
||||
void SavePetInfo(Client *c);
|
||||
void RemoveTempFactions(Client *c);
|
||||
void UpdateItemRecastTimestamps(uint32 char_id, uint32 recast_type, uint32 timestamp);
|
||||
void CreateKickEvent(const std::string &character_name, const std::string &reason);
|
||||
|
||||
bool DeleteCharacterAAs(uint32 character_id);
|
||||
bool DeleteCharacterBandolier(uint32 character_id, uint32 band_id);
|
||||
|
||||
Reference in New Issue
Block a user