lib/whatup/server/server.rb in whatup-0.3.3 vs lib/whatup/server/server.rb in whatup-0.3.4
- old
+ new
@@ -136,14 +136,14 @@
def handle_dm client
msg = StringIO.new
loop do
input = client.input!
puts "#{client.name}> #{input}"
+ msg.puts input
if input == '.exit'
client.puts "Finished dm to `#{client.composing_dm.name}`."
break
end
- msg.puts input
end
client.composing_dm
.received_messages << Message.new(
sender: client,
content: msg.string