Skip to content

Commit 1eddc96

Browse files
committed
fix: correct properties setting function
1 parent 706ee6e commit 1eddc96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/util/GeneralUtil.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ internal fun isTagAllowed(tag: String): Boolean {
9595
}
9696
false
9797
}
98+
9899
PluginConfig.Mode.Blacklist -> {
99100
for (filter in PluginConfig.tagFilter) {
100101
if (filter.toRegex(setOf(RegexOption.IGNORE_CASE)).matches(tag)) return false
@@ -117,6 +118,7 @@ internal fun areTagsAllowed(tags: List<String>): Boolean {
117118
}
118119
flag
119120
}
121+
120122
PluginConfig.Mode.Blacklist -> {
121123
var flag = true
122124
for (tag in tags) {
@@ -149,6 +151,7 @@ internal fun setProperty(subject: Contact, property: PluginData.Property, value:
149151
}
150152
PluginData.customR18Users
151153
}
154+
152155
PluginData.Property.RECALL -> PluginData.customRecallUsers
153156
PluginData.Property.COOLDOWN -> PluginData.customCooldownUsers
154157
} else when (property) {
@@ -158,9 +161,10 @@ internal fun setProperty(subject: Contact, property: PluginData.Property, value:
158161
}
159162
PluginData.customR18Groups
160163
}
164+
161165
PluginData.Property.RECALL -> PluginData.customRecallGroups
162166
PluginData.Property.COOLDOWN -> PluginData.customCooldownGroups
163-
}).toMutableMap()
167+
})
164168
target[subject.id] = value
165169
return true
166170
}

0 commit comments

Comments
 (0)