From e2e1c0b6a9f88818bce5007dc6e058c09446d623 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 16 Jan 2013 20:21:28 +0000 Subject: [PATCH] that bug that somethjing --- modules/users/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/api.js b/modules/users/api.js index 6ec0ce5..5f6d515 100644 --- a/modules/users/api.js +++ b/modules/users/api.js @@ -24,9 +24,9 @@ var api = function(dbot) { var toMatch = new RegExp(user, "i"); if(alias.match(toMatch) !== null) return nick; }, this); + if(!_.isUndefined(resolvedUser)) user = resolvedUser; } - user = resolvedUser; } return user;