X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2;a=blobdiff_plain;f=plomrogue%2Fgame.py;fp=plomrogue%2Fgame.py;h=ba982dd5fcdf7853dfc98947b2427bb04cf20a59;hp=e7bc7301e0eea7782ac9cf444e8bb274f98cdef0;hb=acbbf266ec7288bf7a22b7131f085a7e118b41d4;hpb=66b6c5c9c675fc0b58955dbbe5c6734f27832b1b diff --git a/plomrogue/game.py b/plomrogue/game.py index e7bc730..ba982dd 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -349,6 +349,11 @@ class Game(GameBase): self.changed = True def login(self, nick, connection_id): + if len(self.sessions) > 200: + print('DEBUG LOGIN TOO MANY FOR', connection_id) + self.io.send('CHAT "sorry, too many users currenty ' + 'logged in, try again later"') + return for t in [t for t in self.things if t.type_ == 'Player' and t.name == nick]: self.io.send('GAME_ERROR ' + quote('name already in use'),