mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-08-25 20:16:06 -05:00
Return all keys if none specified
This commit is contained in:
@@ -316,11 +316,14 @@ class Gamestats(LineReceiver):
|
||||
else:
|
||||
self.log(logging.WARNING, "Could not get data section from profile for %d" % (self.profileid))
|
||||
|
||||
for key in (key for key in keys if key not in ("__cmd__", "__cmd_val__", "")):
|
||||
data += "\\" + key + "\\"
|
||||
if len(keys) > 0:
|
||||
for key in (key for key in keys if key not in ("__cmd__", "__cmd_val__", "")):
|
||||
data += "\\" + key + "\\"
|
||||
|
||||
if profile_data != None and key in profile_data:
|
||||
data += profile_data[key]
|
||||
if profile_data != None and key in profile_data:
|
||||
data += profile_data[key]
|
||||
else:
|
||||
data = profile_data
|
||||
|
||||
modified = int(time.time())
|
||||
|
||||
|
||||
@@ -103,6 +103,7 @@ class PlayerSearch(LineReceiver):
|
||||
msg_d.append(('oldone', ""))
|
||||
msg = gs_query.create_gamespy_message(msg_d)
|
||||
|
||||
logger.log(logging.DEBUG, "SENDING: %s" % msg)
|
||||
self.transport.write(bytes(msg))
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user