Fixed !clear command to clear server-side chatBuffer as well as client buffers.
This commit is contained in:
parent
9eeed591ad
commit
de11803cea
3 changed files with 51 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue