mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-07-13 06:31:07 -05:00
Merge 8b40dc78fd into 9e84456bc2
This commit is contained in:
commit
b9ee3cb646
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user