diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2021-11-13 12:32:44 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2021-11-13 12:32:44 +0100 |
commit | 6f4494e1d0170abda0ff7cf41268d584d88ba409 (patch) | |
tree | c4cdc6701b95664c063e7b30f6268e4855e2ce23 /moderation.go | |
parent | 18e7ba7977d1a94880ca6f0bc6d70dab0dc696e2 (diff) |
Switch to new mt API
Diffstat (limited to 'moderation.go')
-rw-r--r-- | moderation.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moderation.go b/moderation.go index ae4d620..719606c 100644 --- a/moderation.go +++ b/moderation.go @@ -6,11 +6,11 @@ import ( "github.com/anon55555/mt" ) -// Kick sends mt.ToCltDisco with the specified custom reason +// Kick sends mt.ToCltKick with the specified custom reason // and closes the ClientConn. func (cc *ClientConn) Kick(reason string) { go func() { - ack, _ := cc.SendCmd(&mt.ToCltDisco{ + ack, _ := cc.SendCmd(&mt.ToCltKick{ Reason: mt.Custom, Custom: reason, }) |