mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
fix [#580]
This commit is contained in:
parent
503326be04
commit
f9ca9a76d9
@ -39,6 +39,10 @@ var webInterface = function(dbot) {
|
|||||||
server = splitUser[1],
|
server = splitUser[1],
|
||||||
username = splitUser[0];
|
username = splitUser[0];
|
||||||
|
|
||||||
|
if(!server || !username) return callback(null, false, { 'message':
|
||||||
|
'Please provide a username in the format of name@server (Servers: ' +
|
||||||
|
_.keys(dbot.config.servers).join(', ') + ')' });
|
||||||
|
|
||||||
dbot.api.users.resolveUser(server, username, function(user) {
|
dbot.api.users.resolveUser(server, username, function(user) {
|
||||||
if(user) {
|
if(user) {
|
||||||
this.api.getWebUser(user.id, function(webUser) {
|
this.api.getWebUser(user.id, function(webUser) {
|
||||||
|
Loading…
Reference in New Issue
Block a user