Revert "Prevent empty disconnect reasons"

This reverts commit ccec89bce6.
master
HimbeerserverDE 2021-09-11 10:18:53 +02:00
parent ccec89bce6
commit 83d208ed95
1 changed files with 0 additions and 4 deletions

View File

@ -5,10 +5,6 @@ import "github.com/anon55555/mt"
// Kick sends mt.ToCltDisco with the specified custom reason
// and closes the ClientConn.
func (cc *ClientConn) Kick(reason string) {
if reason == "" {
reason = "Kicked by proxy."
}
ack, _ := cc.SendCmd(&mt.ToCltDisco{
Reason: mt.Custom,
Custom: reason,