From d7f212ea52e2e1b7e5fd778166f63ebc3f1123e3 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 16 Feb 2018 13:37:26 +0000 Subject: [PATCH] haha check out the bug there, that is actually really funny --- modules/kill_namespam/kill_namespam.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kill_namespam/kill_namespam.js b/modules/kill_namespam/kill_namespam.js index 53c1fac..cf47d5e 100644 --- a/modules/kill_namespam/kill_namespam.js +++ b/modules/kill_namespam/kill_namespam.js @@ -9,7 +9,7 @@ var _ = require('underscore')._; var kill_namespam = function(dbot) { this.listener = function(event) { if(event.channel == event.user) return; // return if pm - if(_.filter(event.message.split(' '), function(word) { return _.has(event.channel.nicks, word); }.length > this.config.sensitivity)) { + if(_.filter(event.message.split(' '), function(word) { return _.has(event.channel.nicks, word); }).length > this.config.sensitivity) { var message = dbot.t('namespam_act', { 'user': event.user, 'channel': event.channel,