Implement the roster presences from IRC servers
This commit is contained in:
@@ -1081,6 +1081,16 @@ void Bridge::send_xmpp_invitation(const Iid& iid, const std::string& author)
|
||||
this->xmpp.send_invitation(std::to_string(iid), this->user_jid + "/" + resource, author);
|
||||
}
|
||||
|
||||
void Bridge::on_irc_client_connected(const std::string& hostname)
|
||||
{
|
||||
this->xmpp.on_irc_client_connected(hostname, this->user_jid);
|
||||
}
|
||||
|
||||
void Bridge::on_irc_client_disconnected(const std::string& hostname)
|
||||
{
|
||||
this->xmpp.on_irc_client_disconnected(hostname, this->user_jid);
|
||||
}
|
||||
|
||||
void Bridge::set_preferred_from_jid(const std::string& nick, const std::string& full_jid)
|
||||
{
|
||||
auto it = this->preferred_user_from.find(nick);
|
||||
|
||||
@@ -201,6 +201,8 @@ public:
|
||||
void send_xmpp_ping_request(const std::string& nick, const std::string& hostname,
|
||||
const std::string& id);
|
||||
void send_xmpp_invitation(const Iid& iid, const std::string& author);
|
||||
void on_irc_client_connected(const std::string& hostname);
|
||||
void on_irc_client_disconnected(const std::string& hostname);
|
||||
|
||||
/**
|
||||
* Misc
|
||||
@@ -301,8 +303,8 @@ private:
|
||||
using ChannelKey = std::tuple<ChannelName, IrcHostname>;
|
||||
public:
|
||||
std::map<ChannelKey, std::set<Resource>> resources_in_chan;
|
||||
private:
|
||||
std::map<IrcHostname, std::set<Resource>> resources_in_server;
|
||||
private:
|
||||
/**
|
||||
* Manage which resource is in which channel
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user