diff --git a/Wikipedia/plugin.py b/Wikipedia/plugin.py index 8d8113b4..c2733ecc 100644 --- a/Wikipedia/plugin.py +++ b/Wikipedia/plugin.py @@ -159,7 +159,7 @@ def wiki(self, irc, msg, args, search): reply += format(_('This article appears to be a talk page: %u'), addr) else: ##### etree! - p = tree.xpath("//div[@id='mw-content-text']/p[1]") + p = tree.xpath("//div[@id='mw-content-text']//p[1]") if len(p) == 0 or addr.endswith('Special:Search'): if 'wikipedia:wikiproject' in addr.lower(): reply += format(_('This page appears to be a WikiProject page, '