3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00
This commit is contained in:
Luke Slater 2014-07-27 14:05:21 +01:00
parent 311f8034f4
commit 964467464c

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