From 2940611f52f66c244b866c2ed25982a52358e323 Mon Sep 17 00:00:00 2001 From: polaris Date: Mon, 2 Jun 2014 00:40:21 -0400 Subject: [PATCH] Fix the delimiter for the block and buddy lists --- gamespy_profile_server.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gamespy_profile_server.py b/gamespy_profile_server.py index 6fe7bd9..6162404 100644 --- a/gamespy_profile_server.py +++ b/gamespy_profile_server.py @@ -261,10 +261,6 @@ class PlayerSession(LineReceiver): self.blocked = self.db.get_blocked_list(self.profileid) if self.sdkrevision == "11": # Used in Tatsunoko vs Capcom - # This makes an assumption about the format of the list for blk and bdy. - # I was not able to find an example where the list contained more than 1 profile id, so I am assuming - # that | is used as a delimiter here based on how the otherslist command works in - # gamespy_player_search_server works. def make_list(data): list = [] for d in data: @@ -276,7 +272,7 @@ class PlayerSession(LineReceiver): msg = gs_query.create_gamespy_message([ ('__cmd__', "blk"), ('__cmd_val__', str(len(block_list))), - ('list', '|'.join(block_list)), + ('list', ','.join(block_list)), ('id', data_parsed['id']), ]) @@ -287,7 +283,7 @@ class PlayerSession(LineReceiver): msg = gs_query.create_gamespy_message([ ('__cmd__', "bdy"), ('__cmd_val__', str(len(buddy_list))), - ('list', '|'.join(buddy_list)), + ('list', ','.join(buddy_list)), ('id', data_parsed['id']), ])