mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Log kick events
This commit is contained in:
+8
-2
@@ -845,7 +845,7 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s
|
||||
{
|
||||
if(AttemptedMessages > RuleI(Chat, MaxMessagesBeforeKick))
|
||||
{
|
||||
Kick();
|
||||
Kick("Sent too many chat messages at once.");
|
||||
return;
|
||||
}
|
||||
if(GlobalChatLimiterTimer)
|
||||
@@ -2586,13 +2586,19 @@ void Client::SetPVP(bool toggle, bool message) {
|
||||
Save();
|
||||
}
|
||||
|
||||
void Client::Kick(const std::string &reason) {
|
||||
client_state = CLIENT_KICKED;
|
||||
|
||||
database.CreateKickEvent(GetName(), reason);
|
||||
}
|
||||
|
||||
void Client::WorldKick() {
|
||||
auto outapp = new EQApplicationPacket(OP_GMKick, sizeof(GMKick_Struct));
|
||||
GMKick_Struct* gmk = (GMKick_Struct *)outapp->pBuffer;
|
||||
strcpy(gmk->name,GetName());
|
||||
QueuePacket(outapp);
|
||||
safe_delete(outapp);
|
||||
Kick();
|
||||
Kick("World kick issued");
|
||||
}
|
||||
|
||||
void Client::GMKill() {
|
||||
|
||||
Reference in New Issue
Block a user