forked from GitHub/dbot
meh
This commit is contained in:
parent
be71f31c07
commit
c0e8290bba
@ -95,17 +95,16 @@ var commands = function(dbot) {
|
|||||||
report = 0,
|
report = 0,
|
||||||
items = {};
|
items = {};
|
||||||
aliases.push(user.primaryNick);
|
aliases.push(user.primaryNick);
|
||||||
console.log(aliases);
|
|
||||||
|
|
||||||
dbot.modules.report.db.search('notifies', {
|
dbot.modules.report.db.search('notifies', {
|
||||||
'server': event.server
|
'server': event.server
|
||||||
}, function(notify) {
|
}, function(notify) {
|
||||||
_.each(aliases, function(alias) {
|
_.each(aliases, function(alias) {
|
||||||
if(notify.message.match('banned ' + alias + ' ') ||
|
if(notify.message.indexOf('banned ' + alias + ' ') != -1 ||
|
||||||
notify.message.match(' ' + alias + ' has been unbanned') ||
|
notify.message.indexOf(' ' + alias + ' has been unbanned') != -1 ||
|
||||||
notify.message.match('issued a warning to ' + alias + ' ') ||
|
notify.message.indexOf('issued a warning to ' + alias + ' ') != -1 ||
|
||||||
notify.message.match('has quieted ' + alias + ' ') ||
|
notify.message.indexOf('has quieted ' + alias + ' ') != -1 ||
|
||||||
notify.message.match('has reported ' + alias + ' ')) {
|
notify.message.indexOf('has reported ' + alias + ' ') != -1) {
|
||||||
if(notify.type == 'ban') {
|
if(notify.type == 'ban') {
|
||||||
ban++;
|
ban++;
|
||||||
if(notify.time > latest_ban.time) {
|
if(notify.time > latest_ban.time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user