MinoMino / minqlx

Extends Quake Live's dedicated server with extra functionality and scripting.
GNU General Public License v3.0
112 stars 42 forks source link

Configstrings are unreliable. #13

Closed MinoMino closed 9 years ago

MinoMino commented 9 years ago
(11:06:06) [ERROR @ minqlx.ban.log_exception] Traceback (most recent call last):
(11:06:06) [ERROR @ minqlx.ban.log_exception]   File "minqlx.zip/minqlx/_events.py", line 79, in dispatch
(11:06:06) [ERROR @ minqlx.ban.log_exception]     res = handler(*self.args, **self.kwargs)
(11:06:06) [ERROR @ minqlx.ban.log_exception]   File "./minqlx-plugins/ban.py", line 84, in handle_player_disconnect
(11:06:06) [ERROR @ minqlx.ban.log_exception]     teams = self.teams()
(11:06:06) [ERROR @ minqlx.ban.log_exception]   File "minqlx.zip/minqlx/_plugin.py", line 400, in teams
(11:06:06) [ERROR @ minqlx.ban.log_exception]     res[p.team].append(p)
(11:06:06) [ERROR @ minqlx.ban.log_exception]   File "minqlx.zip/minqlx/_player.py", line 204, in team
(11:06:06) [ERROR @ minqlx.ban.log_exception]     return minqlx.TEAMS[int(self["t"])]
(11:06:06) [ERROR @ minqlx.ban.log_exception]   File "minqlx.zip/minqlx/_player.py", line 121, in __getitem__
(11:06:06) [ERROR @ minqlx.ban.log_exception]     return self.cvars[key]
(11:06:06) [ERROR @ minqlx.ban.log_exception] KeyError: 't'
MinoMino commented 9 years ago

67d0b919ee54892862a07c59a267f456408defbc tries to deal with this. If someone wants to try it, then that'd be cool.

MinoMino commented 9 years ago

Looks good.