diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-11-22 21:00:32 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-11-28 01:18:26 +0100 |
commit | e6f20d3c0fd4ba8696a4410a366741c9b9f3562d (patch) | |
tree | 0b34e42163fcb2b869e74fa11c4fb18cf5226b89 /src/bridge/bridge.hpp | |
parent | 31e18e49b699f606a8aeb1f529642a004781e704 (diff) | |
download | biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.tar.gz biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.tar.bz2 biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.tar.xz biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.zip |
Implement IRC format to xhtml-im conversion
The generated XML is very verbose because each IRC formatting tag makes us
close a <span/> element and reopen it with the new style applied. However,
this works quite well and is easy to implement.
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r-- | src/bridge/bridge.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index b2124bd..1443191 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -2,6 +2,7 @@ # define BRIDGE_INCLUDED #include <irc/irc_client.hpp> +#include <bridge/colors.hpp> #include <irc/iid.hpp> #include <unordered_map> @@ -23,7 +24,7 @@ public: explicit Bridge(const std::string& user_jid, XmppComponent* xmpp, Poller* poller); ~Bridge(); - static std::string sanitize_for_xmpp(const std::string& str); + static Xmpp::body make_xmpp_body(const std::string& str); /*** ** ** From XMPP to IRC. |