# -*- coding: utf-8 -*- # Modular system for querying game servers. # # Author: Roman Vasiyarov # License: GPLv3 # $Id$ # # Nexuiz module # import sys import struct from datetime import datetime NAMES = [ "gamename", "modname", "gameversion", "sv_maxclients", "clients", "bots", "mapname", "hostname", "protocol", "qcstatus", # should be last "ping" ] NEXUIZ_MAGIC = 0xffffffff def process(pkt): n = 4 # "header" size seq = None out = "" try: seq = struct.unpack("