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) {
if(user) {
if(profile && _.has(profile.profile, 'lastfm')) {
callback(user, profile.profile.lastfm.toLowerCase(););
callback(user, profile.profile.lastfm.toLowerCase());
} else {
callback(user, null);
}