This commit is contained in:
smtddr @ youtube, twitter, twitch.tv 2016-12-09 15:13:01 +00:00 committed by GitHub
commit b9ee3cb646

View File

@ -205,6 +205,11 @@ class PlayerSession(LineReceiver):
commands, self.remaining_message = \
gs_query.parse_gamespy_message(data)
if self.gameid and self.db.is_banned({'gamecd':self.gameid,'ipaddr':self.address.host}):
self.log(logging.DEBUG, "**** Banned user, closing network socket for %s|%s..." % (self.gameid,self.address.host))
self.transport.abortConnection()
return
cmds = {
"login": self.perform_login,
"logout": self.perform_logout,