allow for custom kick status message

This commit is contained in:
adman
2026-04-29 18:31:36 +02:00
parent 4878c6cc7b
commit 3d34ad59e9
2 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ func ServeClient(cNet net.Conn, factory Factory) {
return
}
if err != nil {
err = Kick(c, text.Pretty(err.Error()))
err = Kick(c, text.Pretty(err.Error()), "")
}
}
@@ -79,7 +79,7 @@ func StartServerWithOnConn(listenAddr string, onConn func(c *proto.Conn) (err er
running = false
}
if connErr != nil {
connErr = Kick(c, text.Pretty(connErr.Error()))
connErr = Kick(c, text.Pretty(connErr.Error()), "")
}
}()
}