Forward IRC invites to XMPP

This commit is contained in:
louiz’
2016-08-18 20:33:41 +02:00
parent 5406de35a3
commit 4c8fb9a0e3
6 changed files with 38 additions and 0 deletions
+6
View File
@@ -798,6 +798,12 @@ void Bridge::send_xmpp_ping_request(const std::string& nick, const std::string&
this->xmpp.send_ping_request(utils::tolower(nick) + "%" + utils::empty_if_fixed_server(hostname), this->user_jid + "/" + *resources.begin(), utils::revstr(id));
}
void Bridge::send_xmpp_invitation(const Iid& iid, const std::string& author)
{
for (const auto& resource: this->resources_in_server[iid.get_server()])
this->xmpp.send_invitation(std::to_string(iid), this->user_jid + "/" + resource, author);
}
void Bridge::set_preferred_from_jid(const std::string& nick, const std::string& full_jid)
{
auto it = this->preferred_user_from.find(nick);
+2
View File
@@ -175,6 +175,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);
/**
* Misc
*/