Update wuvt.py
Strip whitespace from DJ name before comparisons
This commit is contained in:
@@ -28,7 +28,7 @@ def wuvt(phenny, input):
|
||||
dj = r_dj.search(djpage).group(1)
|
||||
|
||||
if song and artist:
|
||||
if dj[0:3] == 'DJ ':
|
||||
if dj.strip()[0:3] == 'DJ ':
|
||||
phenny.reply('{0} is currently playing: {1} by {2}'
|
||||
.format(dj.strip(), song.strip(), artist.strip()))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user