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:
parent
6faedb59a8
commit
1aa1800ea2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user