3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-26 03:54:18 +01:00

whoopsie doodle

This commit is contained in:
Luke Slater 2014-08-19 00:49:00 +01:00
parent ad08b24c3e
commit c691ce38ed

View File

@ -16,7 +16,7 @@ var lastfm = function(dbot) {
dbot.api.profile.getProfile(server, nick, function(err, user, profile) { dbot.api.profile.getProfile(server, nick, function(err, user, profile) {
if(user) { if(user) {
if(profile && _.has(profile.profile, 'lastfm')) { if(profile && _.has(profile.profile, 'lastfm')) {
callback(user, profile.profile.lastfm.toLowerCase();); callback(user, profile.profile.lastfm.toLowerCase());
} else { } else {
callback(user, null); callback(user, null);
} }