3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
This commit is contained in:
reality 2013-08-31 15:38:57 +00:00
parent 503326be04
commit f9ca9a76d9

View File

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