This commit is contained in:
2024-10-21 20:27:14 +08:00
parent 97cd846b53
commit 3eabe254af
1 file changed
+2 -2
@@ -35,8 +35,8 @@ class NslookupCommand : BaseCommand() {
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
val host = args.first()
val nsType = args[1]
val srvType = args.last()
val nsType = if (args.size == 3) args[1] else "common"
val srvType = if (args.size == 3) args.last() else "mc"
try {
if (nsType == "srv") {
when (srvType) {