aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/moyai.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/moyai.ts')
-rw-r--r--src/plugins/moyai.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/moyai.ts b/src/plugins/moyai.ts
index e3f5db9..3bb7f2e 100644
--- a/src/plugins/moyai.ts
+++ b/src/plugins/moyai.ts
@@ -111,7 +111,7 @@ function countMatches(sourceString: string, pattern: RegExp) {
const customMoyaiRe = /<a?:\w*moy?ai\w*:\d{17,20}>/gi;
function getMoyaiCount(message: string) {
- let count = countOccurrences(message, MOYAI)
+ const count = countOccurrences(message, MOYAI)
+ countMatches(message, customMoyaiRe);
return Math.min(count, 10);