lib/robut/room.rb in sclemmer-robut-0.5.3 vs lib/robut/room.rb in sclemmer-robut-0.5.4

- old
+ new

@@ -24,9 +24,16 @@ end # Send +message+ to the room we're currently connected to def reply(message, to) msg = Jabber::Message.new(muc.room) - msg.set_xhtml_body(message) + if message =~ /</ + msg.xhtml_body = message + else + msg.body = message + end + $stderr.puts 'msg: %s' % msg.inspect + $stderr.puts 'msg.body: %s' % msg.body.inspect + $stderr.puts 'msg.xhtml_body: %s' % msg.xhtml_body.inspect muc.send(msg) end end