forked from GitHub/dbot
rookie mistake
This commit is contained in:
parent
badf17b0ec
commit
d1b764d4ec
@ -73,7 +73,7 @@ var warning = function(dbot) {
|
|||||||
dbot.api.users.getUserAliases(warnee.id, function(err, aliases) {
|
dbot.api.users.getUserAliases(warnee.id, function(err, aliases) {
|
||||||
var alia = aliases.push(warnee.primaryNick);
|
var alia = aliases.push(warnee.primaryNick);
|
||||||
this.db.search('notifies', {
|
this.db.search('notifies', {
|
||||||
'server': warnee.id,
|
'server': event.server,
|
||||||
'type': 'warn'
|
'type': 'warn'
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
if(_.include(alia, result.target)) {
|
if(_.include(alia, result.target)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user