summaryrefslogtreecommitdiffstats
path: root/modules/wikipedia.py
diff options
context:
space:
mode:
authorSean B. Palmer <sbp@aldebaran.local>2010-04-03 11:08:03 +0100
committerSean B. Palmer <sbp@aldebaran.local>2010-04-03 11:08:03 +0100
commitb4c7019d53eea1e642579fa87f5b0b0431e4aa6a (patch)
tree27e3bfb355e78c953dec59eee54f6ee18d6f7a99 /modules/wikipedia.py
parentc5b234578ef0a1231e99153eb7b0bb9e11255742 (diff)
downloadbot-b4c7019d53eea1e642579fa87f5b0b0431e4aa6a.tar.gz
bot-b4c7019d53eea1e642579fa87f5b0b0431e4aa6a.tar.bz2
bot-b4c7019d53eea1e642579fa87f5b0b0431e4aa6a.zip
Fixed the Wikipedia module's search capability.
Diffstat (limited to 'modules/wikipedia.py')
-rwxr-xr-xmodules/wikipedia.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/wikipedia.py b/modules/wikipedia.py
index e1c059c..0542067 100755
--- a/modules/wikipedia.py
+++ b/modules/wikipedia.py
@@ -126,8 +126,8 @@ def wikipedia(term, last=False):
words.pop()
sentence = ' '.join(words) + ' [...]'
- if ((sentence == 'Wikipedia does not have an article with this exact name.')
- or (sentence == 'Wikipedia does not have a page with this exact name.')):
+ if (('using the Article Wizard if you wish' in sentence)
+ or ('or add a request for it' in sentence)):
if not last:
term = search(term)
return wikipedia(term, last=True)