lib/blather/stream/client.rb in blather-0.4.1 vs lib/blather/stream/client.rb in blather-0.4.2

- old
+ new

@@ -17,9 +17,15 @@ xml:lang='#{LANG}' > STREAM send start_stream.gsub(/\s+/, ' ') end + + def send(stanza) + stanza.from = self.jid if stanza.is_a?(Stanza) && !stanza.from.nil? + super stanza + end + end #Client end #Stream end #Blather