From f9ca9a76d9b996994a10f1ddf458b18bfa605579 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 31 Aug 2013 15:38:57 +0000 Subject: [PATCH] fix [#580] --- modules/web/web.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/web/web.js b/modules/web/web.js index 58aaccb..ac39acc 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -39,6 +39,10 @@ var webInterface = function(dbot) { server = splitUser[1], 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) { if(user) { this.api.getWebUser(user.id, function(webUser) {