lib/riddle/client.rb in freelancing-god-riddle-0.9.8.1533.5 vs lib/riddle/client.rb in freelancing-god-riddle-0.9.8.1533.7
- old
+ new
@@ -435,9 +435,12 @@
response = ""
status = -1
version = 0
length = 0
message = Array(messages).join("")
+ if message.respond_to?(:force_encoding)
+ message = message.force_encoding('ASCII-8BIT')
+ end
connect do |socket|
case command
when :search
# Message length is +4 to account for the following count value for