- Added .at_failed_login(session) to default Player typeclass.

- unloggedin.CmdUnconnectedConnect now calls the at_failed_login hook on player if a correct user is entered by an invalid password provided.
This commit is contained in:
Andrew Bastien 2015-07-24 20:17:08 -04:00 committed by Griatch
parent 640439dcf5
commit e0e382e0c6
2 changed files with 12 additions and 0 deletions

View file

@ -166,6 +166,8 @@ 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)
return
# Check IP and/or name bans