MCInfo: fix typos in comments

wtf is a "fatch"?
This commit is contained in:
James Lu 2016-02-29 07:04:12 -08:00
parent 0bc0aa0bf7
commit 9c4ad9acda

View File

@ -92,7 +92,7 @@ class MCInfo(callbacks.Plugin):
soup = BeautifulSoup(article) soup = BeautifulSoup(article)
# Find the "Crafting table" displayed in the Wiki fatch showing how to craft something. # Find the "Crafting table" displayed in the Wiki page showing how to craft the item.
crafting_table = soup.find('table', attrs={"data-description": 'Crafting recipes'}) crafting_table = soup.find('table', attrs={"data-description": 'Crafting recipes'})
if not crafting_table: if not crafting_table:
irc.error("No crafting information found.", Raise=True) irc.error("No crafting information found.", Raise=True)
@ -105,8 +105,6 @@ class MCInfo(callbacks.Plugin):
if t == 'Crafting ingredient': if t == 'Crafting ingredient':
irc.error("The item '%s' cannot be crafted." % item, Raise=True) irc.error("The item '%s' cannot be crafted." % item, Raise=True)
# Get the first crafting result. TODO: optionally show all recipes if there are more than one. # Get the first crafting result. TODO: optionally show all recipes if there are more than one.
crafting_data = crafting_table.find_all('tr')[1] crafting_data = crafting_table.find_all('tr')[1]