forked from GitHub/dbot
i hate computers
This commit is contained in:
parent
e403d1d7f1
commit
21f4bc4ad6
@ -20,13 +20,13 @@ var api = function(dbot) {
|
|||||||
|
|
||||||
if(!resolvedUser) {
|
if(!resolvedUser) {
|
||||||
resolvedUser = _.find(knownUsers.aliases, function(nick, alias) {
|
resolvedUser = _.find(knownUsers.aliases, function(nick, alias) {
|
||||||
|
console.log(alias + ' -> ' + nick);
|
||||||
var toMatch = new RegExp(user, "i");
|
var toMatch = new RegExp(user, "i");
|
||||||
return alias.match(toMatch) !== null;
|
if(alias.match(toMatch) !== null) return nick;
|
||||||
}, this);
|
}, this);
|
||||||
user = knownUsers.aliases[resolvedUser];
|
|
||||||
} else {
|
|
||||||
user = resolvedUser;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user = resolvedUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
return user;
|
return user;
|
||||||
|
Loading…
Reference in New Issue
Block a user