diff --git a/src/plugins/Spam.ts b/src/plugins/Spam.ts index 0b0df1c7..1a2d4985 100644 --- a/src/plugins/Spam.ts +++ b/src/plugins/Spam.ts @@ -90,6 +90,7 @@ export class SpamPlugin extends Plugin { if (action.timestamp < since) return false; if (action.type !== type) return false; if (action.channelId !== channelId) return false; + if (action.userId !== userId) return false; return true; }); } @@ -99,6 +100,7 @@ export class SpamPlugin extends Plugin { if (action.timestamp < since) return count; if (action.type !== type) return count; if (action.channelId !== channelId) return count; + if (action.userId !== userId) return false; return count + action.count; }, 0); }