[O] Make always vip configurable

This commit is contained in:
Azalea
2024-04-02 02:04:42 -04:00
parent 6441dfd219
commit 02e2700e96
3 changed files with 14 additions and 10 deletions

View File

@@ -129,6 +129,7 @@ fun Long.toHex(len: Int = 16): Str = "0x${this.toString(len).padStart(len, '0').
fun Map<String, Any>.toUrl() = entries.joinToString("&") { (k, v) -> "$k=$v" }
fun Any.long() = when (this) {
is Boolean -> if (this) 1L else 0
is Number -> toLong()
is String -> toLong()
else -> 400 - "Invalid number: $this"