mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 12:29:26 +01:00
haha check out the bug there, that is actually really funny
This commit is contained in:
parent
3b6dd18611
commit
d7f212ea52
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user