.BANCHO. .FIX. Fix some format errors

This commit is contained in:
Nyo 2016-12-28 16:15:07 +01:00
parent f85640ae39
commit 9055fcaf5e
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ def getPPMessage(userID, just_data = False):
currentAcc = token.tillerino[2]
# Send request to LETS api
resp = requests.get("http://127.0.0.1:5002/api/v1/pp?b={}&m={}".format(currentMap, currentMods, currentAcc), timeout=10).text
resp = requests.get("http://127.0.0.1:5002/api/v1/pp?b={}&m={}".format(currentMap, currentMods), timeout=10).text
data = json.loads(resp)
# Make sure status is in response data

View File

@ -243,7 +243,7 @@ def sendMessage(fro = "", to = "", message = "", token = None, toIRC = True):
# Away check
if recipientToken.awayCheck(token.userID):
sendMessage(to, fro, "\x01ACTION is away: {message}\x01".format(code=chr(int(1)), message=recipientToken.awayMessage))
sendMessage(to, fro, "\x01ACTION is away: {}\x01".format(recipientToken.awayMessage))
# Check message templates (mods/admins only)
if message in messageTemplates.templates and token.admin == True: