comments added

This commit is contained in:
= 2024-07-24 19:24:47 +05:30
parent 03b95eb3fe
commit d512f4ed53
1 changed files with 3 additions and 2 deletions

View File

@ -2831,12 +2831,13 @@ func ModifierExists(name string, fn func(json, arg string) string) bool {
return ok
}
// DeleteModifier delete a custom modifier
// DeleteModifier delete a custom modifier command
// Modifier can be deleted when ever needed
func DeleteModifier(name string) {
modifiers.Delete(name)
}
// DeleteModifierIfExists delete a custom modifier if it is existing
// DeleteModifierIfExists delete a custom modifier command if it is existing
func DeleteModifierIfExists(name string) {
_, ok := modifiers.Load(name)
if ok {