Fixed !clear command to clear server-side chatBuffer as well as client buffers.

This commit is contained in:
rainbow napkin 2025-09-10 03:43:15 -04:00
parent 9eeed591ad
commit de11803cea
3 changed files with 51 additions and 5 deletions

View file

@ -334,7 +334,11 @@ class chatHandler{
//If no user was entered OR the user was found
if(user == null || target != null){
//Send command out to browsers to drop chats from buffer
this.server.io.in(chan).emit("clearChat", {user});
//Clear serverside buffer, down to the DB
activeChan.chatBuffer.clearBuffer(user);
}
}
}