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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user