Commit 4e61b0d5 authored by louiz’'s avatar louiz’

The author name from messages from the server are now nicely formated

parent 77a84fd2
...@@ -241,7 +241,12 @@ void Bridge::send_xmpp_message(const std::string& from, const std::string& autho ...@@ -241,7 +241,12 @@ void Bridge::send_xmpp_message(const std::string& from, const std::string& autho
{ {
std::string body; std::string body;
if (!author.empty()) if (!author.empty())
body = std::string("[") + author + std::string("] ") + msg; {
IrcUser user(author);
body = std::string("\u000303") + user.nick + (user.host.empty()?
std::string("\u0003: "):
(" (\u000310" + user.host + std::string("\u000303)\u0003: "))) + msg;
}
else else
body = msg; body = msg;
this->xmpp->send_message(from, this->make_xmpp_body(body), this->user_jid, "chat"); this->xmpp->send_message(from, this->make_xmpp_body(body), this->user_jid, "chat");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment