From c1f35a4e10aa66d8131bbbfa9be985b2a57b1339 Mon Sep 17 00:00:00 2001 From: Andrew Bastien Date: Fri, 24 Jul 2015 20:24:26 -0400 Subject: [PATCH] - Tiny fix to the failed login call. --- evennia/commands/default/unloggedin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/unloggedin.py b/evennia/commands/default/unloggedin.py index 30f15d2d50..6ee497022e 100644 --- a/evennia/commands/default/unloggedin.py +++ b/evennia/commands/default/unloggedin.py @@ -166,8 +166,9 @@ class CmdUnconnectedConnect(MuxCommand): session.msg(string) # this just updates the throttle _throttle(session, storage=_LATEST_FAILED_LOGINS) - # calls player hook for a failed login. - player.at_failed_login(session) + # calls player hook for a failed login if possible. + if player: + player.at_failed_login(session) return # Check IP and/or name bans