From 202681e36a05b8e50f9eaf9f8fbc732b98b5e8fa Mon Sep 17 00:00:00 2001 From: Matt Hazinski Date: Fri, 7 Nov 2014 22:44:44 -0500 Subject: [PATCH] Update wuvt.py Strip whitespace from DJ name before comparisons --- modules/wuvt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wuvt.py b/modules/wuvt.py index f927d18..a25dff2 100644 --- a/modules/wuvt.py +++ b/modules/wuvt.py @@ -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: