From f7b0d6f3883835b84d18d6a0f2a7579ed9e6b74f Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 24 Feb 2012 16:23:16 +1300 Subject: [PATCH] Fixed plugins/mctools.py --- plugins/mctools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mctools.py b/plugins/mctools.py index 9a4b525..dc2a296 100644 --- a/plugins/mctools.py +++ b/plugins/mctools.py @@ -6,8 +6,8 @@ def mcstatus(inp, bot=None): ".mcstatus - Attempts to log in to minecraft" username = bot.config.get("api_keys", {}).get("mc_user", None) password = bot.config.get("api_keys", {}).get("mc_pass", None) - if api_key is None: - return "error: no api key set" + if password is None: + return "error: no login set" login = http.get("https://login.minecraft.net/?user="+username+"&password="+password+"&version=13") if username.lower() in login.lower():