summaryrefslogtreecommitdiffstats
path: root/modules/calc.py
diff options
context:
space:
mode:
authorSean B. Palmer <sean@miscoranda.com>2011-08-04 15:53:55 +0100
committerSean B. Palmer <sean@miscoranda.com>2011-08-04 15:53:55 +0100
commit66edd833726d0a14400df65311999b1496b9f8cb (patch)
tree76ea94f6c23c7b2819a42a74f1036ff6220d9222 /modules/calc.py
parentc493e7ca07cca403334eabcc069d5bc1cb468220 (diff)
downloadbot-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-xmodules/calc.py2
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.')