Provide a JID for IRC users, and add a stringprep dependency for this
This commit is contained in:
@@ -167,9 +167,11 @@ void Bridge::send_xmpp_message(const std::string& from, const std::string& autho
|
||||
this->xmpp->send_message(from, this->make_xmpp_body(body), this->user_jid);
|
||||
}
|
||||
|
||||
void Bridge::send_user_join(const std::string& hostname, const std::string& chan_name, const std::string nick)
|
||||
void Bridge::send_user_join(const std::string& hostname,
|
||||
const std::string& chan_name,
|
||||
const IrcUser* user)
|
||||
{
|
||||
this->xmpp->send_user_join(chan_name + "%" + hostname, nick, this->user_jid);
|
||||
this->xmpp->send_user_join(chan_name + "%" + hostname, user->nick, user->host, this->user_jid);
|
||||
}
|
||||
|
||||
void Bridge::send_self_join(const std::string& hostname, const std::string& chan_name, const std::string nick)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <irc/irc_client.hpp>
|
||||
#include <bridge/colors.hpp>
|
||||
#include <irc/irc_user.hpp>
|
||||
#include <irc/iid.hpp>
|
||||
|
||||
#include <unordered_map>
|
||||
@@ -56,7 +57,9 @@ public:
|
||||
/**
|
||||
* Send the presence of a new user in the MUC.
|
||||
*/
|
||||
void send_user_join(const std::string& hostname, const std::string& chan_name, const std::string nick);
|
||||
void send_user_join(const std::string& hostname,
|
||||
const std::string& chan_name,
|
||||
const IrcUser* user);
|
||||
/**
|
||||
* Send the self presence of an user when the MUC is fully joined.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user