ibb: Fix serialisation of <data/> data.

Emmanuel Gil Peyrot created

Change summary

src/ibb.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/ibb.rs 🔗

@@ -120,7 +120,7 @@ pub fn serialise(ibb: &IBB) -> Element {
                     .ns(ns::IBB)
                     .attr("seq", format!("{}", seq))
                     .attr("sid", sid.to_owned())
-                    .attr("data", base64::encode(&data))
+                    .append(base64::encode(&data))
                     .build()
         },
         IBB::Close { ref sid } => {