diff options
author | Sean B. Palmer <sean@miscoranda.com> | 2011-08-04 15:53:55 +0100 |
---|---|---|
committer | Sean B. Palmer <sean@miscoranda.com> | 2011-08-04 15:53:55 +0100 |
commit | 66edd833726d0a14400df65311999b1496b9f8cb (patch) | |
tree | 76ea94f6c23c7b2819a42a74f1036ff6220d9222 /modules/calc.py | |
parent | c493e7ca07cca403334eabcc069d5bc1cb468220 (diff) | |
download | bot-66edd833726d0a14400df65311999b1496b9f8cb.tar.gz bot-66edd833726d0a14400df65311999b1496b9f8cb.tar.bz2 bot-66edd833726d0a14400df65311999b1496b9f8cb.zip |
DuckDuckGo support, and minor wa and wik fixes.
Diffstat (limited to 'modules/calc.py')
-rwxr-xr-x | modules/calc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/calc.py b/modules/calc.py index d8cad35..9a5b187 100755 --- a/modules/calc.py +++ b/modules/calc.py @@ -105,7 +105,7 @@ def wa(phenny, input): return phenny.reply("No search term.") query = input.group(2).encode('utf-8') uri = 'http://tumbolia.appspot.com/wa/' - answer = web.get(uri + web.urllib.quote(query)) + answer = web.get(uri + web.urllib.quote(query.replace('+', '%2B'))) if answer: phenny.say(answer) else: phenny.reply('Sorry, no result.') |