diff options
Diffstat (limited to 'moderation.go')
-rw-r--r-- | moderation.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/moderation.go b/moderation.go index 1500a6d..4cb3e68 100644 --- a/moderation.go +++ b/moderation.go @@ -5,6 +5,10 @@ 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, |