fix
This commit is contained in:
1 file changed
+2
-2
@@ -35,8 +35,8 @@ class NslookupCommand : BaseCommand() {
|
|||||||
|
|
||||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||||
val host = args.first()
|
val host = args.first()
|
||||||
val nsType = args[1]
|
val nsType = if (args.size == 3) args[1] else "common"
|
||||||
val srvType = args.last()
|
val srvType = if (args.size == 3) args.last() else "mc"
|
||||||
try {
|
try {
|
||||||
if (nsType == "srv") {
|
if (nsType == "srv") {
|
||||||
when (srvType) {
|
when (srvType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user