3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

haha check out the bug there, that is actually really funny

This commit is contained in:
reality 2018-02-16 13:37:26 +00:00
parent 3b6dd18611
commit d7f212ea52

View File

@ -9,7 +9,7 @@ var _ = require('underscore')._;
var kill_namespam = function(dbot) { var kill_namespam = function(dbot) {
this.listener = function(event) { this.listener = function(event) {
if(event.channel == event.user) return; // return if pm 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', { var message = dbot.t('namespam_act', {
'user': event.user, 'user': event.user,
'channel': event.channel, 'channel': event.channel,