From 1aa1800ea2b794f3689215c30a9c56ab216b62f4 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 27 Jun 2013 19:19:13 +0000 Subject: [PATCH] finish off auto resolve --- modules/users/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/commands.js b/modules/users/commands.js index 1011249..6409ab9 100644 --- a/modules/users/commands.js +++ b/modules/users/commands.js @@ -3,7 +3,7 @@ var _ = require('underscore')._; var commands = function(dbot) { var commands = { '~alias': function(event) { - var nick = event.params[1].trim(); + var nick = event.params[1].trim() || event.user; this.api.resolveUser(event.server, nick, function(user) { if(user) { if(nick == user.primaryNick) {