Skip to content

Commit

Permalink
Fix modsearch when using spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Sep 26, 2015
1 parent 29b8686 commit ce827a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modsearch.py
Expand Up @@ -9,7 +9,7 @@

def mod(phenny, input):
uri = "http://nimg.pf-control.de/MTstuff/modSearchAPI.php?q="
text, sc = web.get(uri + input.group(2))
text, sc = web.get(uri + web.urlencode(input.group(2)))
text = str(text, 'utf-8')
data = web.json(text)
answer = ""
Expand Down

0 comments on commit ce827a3

Please sign in to comment.