3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

finish off auto resolve

This commit is contained in:
reality 2013-06-27 19:19:13 +00:00
parent 6faedb59a8
commit 1aa1800ea2

View File

@ -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) {