From 83d208ed951018e5dbefe2d1e4d80dbedbab3cfb Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Sat, 11 Sep 2021 10:18:53 +0200 Subject: Revert "Prevent empty disconnect reasons" This reverts commit ccec89bce62cbcb1c067b51509d11a8bee43f0f2. --- moderation.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'moderation.go') diff --git a/moderation.go b/moderation.go index 4cb3e68..1500a6d 100644 --- a/moderation.go +++ b/moderation.go @@ -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, -- cgit v1.2.3