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