Skip to content

Commit

Permalink
[calc] Change + to 'plus' in Wolfram
Browse files Browse the repository at this point in the history
It's a dirty and ugly workaround for sopel-irc#504
  • Loading branch information
Elad Alfassa committed May 3, 2014
1 parent e4c0977 commit 237ef8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def wa(bot, trigger):
query = trigger.group(2)
uri = 'http://tumbolia.appspot.com/wa/'
try:
answer = web.get(uri + web.quote(query).replace('+', '%2B'), 45,
answer = web.get(uri + web.quote(query.replace('+', 'plus')), 45,
dont_decode=True)
except timeout as e:
return bot.say('[WOLFRAM ERROR] Request timed out')
Expand Down

0 comments on commit 237ef8e

Please sign in to comment.