little bit of debugging help

This commit is contained in:
NikkyAI 2018-11-28 15:15:39 +01:00
parent ef66087044
commit fe9cb31d72
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ object CommandCoreML {
return "nonce in request does not match"
}
val powerLevelArg = args.getOrNull(2)?.toDoubleOrNull()
val powerLevel = powerLevelArg ?: run { return "permLevel cannot be parsed" }
val powerLevel = powerLevelArg ?: run { return "permLevel cannot be parsed (args: $args)" }
?: request.powerlevel
?: return "no permLevel provided"
PermissionConfig.add(request.uuid, powerLevel, "${request.user} Authorized by $user")