3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +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 = function(dbot) {
var commands = { var commands = {
'~alias': function(event) { '~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) { this.api.resolveUser(event.server, nick, function(user) {
if(user) { if(user) {
if(nick == user.primaryNick) { if(nick == user.primaryNick) {