gamespy_query 0.2.0pre14 → 0.2.0pre15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gamespy_query/parser.rb +3 -3
- data/lib/gamespy_query/version.rb +1 -1
- metadata +1 -1
data/lib/gamespy_query/parser.rb
CHANGED
@@ -63,19 +63,19 @@ module GamespyQuery
|
|
63
63
|
packets = packet.split(RX_PLAYER_HEADER, 2)
|
64
64
|
|
65
65
|
# Parse last game_data piece if available
|
66
|
-
data[:game].merge!(parse_game_data(packets[0])) unless packets[0].empty?
|
66
|
+
data[:game].merge!(parse_game_data( encode_string(packets[0]) )) unless packets[0].empty?
|
67
67
|
|
68
68
|
# Collect the player_data if available
|
69
69
|
player_data += packets[1]
|
70
70
|
else
|
71
71
|
# GameData-only
|
72
|
-
data[:game].merge! parse_game_data( encode_string(packet
|
72
|
+
data[:game].merge! parse_game_data( encode_string(packet) )
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
77
|
# Parse player_data
|
78
|
-
data[:players] = parse_player_data( encode_string(player_data
|
78
|
+
data[:players] = parse_player_data( encode_string(player_data) )
|
79
79
|
|
80
80
|
data
|
81
81
|
end
|