diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-12-03 21:14:24 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-12-03 21:15:22 +0100 |
commit | 1f6eea62f46789c0d3ebe7da133ccad2e59c89c8 (patch) | |
tree | d84086c52ea913fea84aa33d2ef0f6284c24d8e7 /louloulibs | |
parent | 700a6c7bc39aa48af5037ecbb9778b20fb6f87df (diff) | |
download | biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.gz biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.bz2 biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.xz biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.zip |
Add an ad-hoc command to disconnect a user from one or more IRC server
fix #3077
Diffstat (limited to 'louloulibs')
-rw-r--r-- | louloulibs/xmpp/xmpp_stanza.cpp | 5 | ||||
-rw-r--r-- | louloulibs/xmpp/xmpp_stanza.hpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/louloulibs/xmpp/xmpp_stanza.cpp b/louloulibs/xmpp/xmpp_stanza.cpp index 4c0f5c7..d1c2e0f 100644 --- a/louloulibs/xmpp/xmpp_stanza.cpp +++ b/louloulibs/xmpp/xmpp_stanza.cpp @@ -260,3 +260,8 @@ std::string sanitize(const std::string& data) else return xml_escape(utils::remove_invalid_xml_chars(utils::convert_to_utf8(data, "ISO-8859-1"))); } + +std::ostream& operator<<(std::ostream& os, const XmlNode& node) +{ + return os << node.to_string(); +} diff --git a/louloulibs/xmpp/xmpp_stanza.hpp b/louloulibs/xmpp/xmpp_stanza.hpp index 9cf7d8d..b1ba54a 100644 --- a/louloulibs/xmpp/xmpp_stanza.hpp +++ b/louloulibs/xmpp/xmpp_stanza.hpp @@ -140,4 +140,6 @@ private: */ typedef XmlNode Stanza; +std::ostream& operator<<(std::ostream& os, const XmlNode& node); + #endif // XMPP_STANZA_INCLUDED |