mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 23:50:15 +08:00
Do checkPluginDescription in SimpleJvmPluginDescription.init
This commit is contained in:
parent
fc5fc18913
commit
9adc4cde55
@ -65,7 +65,7 @@ public interface JvmPluginDescription : PluginDescription {
|
|||||||
/**
|
/**
|
||||||
* @see [PluginDescription.version]
|
* @see [PluginDescription.version]
|
||||||
*/
|
*/
|
||||||
@ResolveContext(PLUGIN_VERSION) version: SemVersion,
|
version: SemVersion,
|
||||||
/**
|
/**
|
||||||
* @see [PluginDescription.name]
|
* @see [PluginDescription.name]
|
||||||
*/
|
*/
|
||||||
@ -230,6 +230,6 @@ internal data class SimpleJvmPluginDescription
|
|||||||
) : this(name, SemVersion(version), id, author, info, dependencies)
|
) : this(name, SemVersion(version), id, author, info, dependencies)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
require(!name.contains(':')) { "':' is forbidden in plugin name" }
|
PluginDescription.checkPluginDescription(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user