Implement PING, user to user only (XMPP and IRC side, using CTCP PING)

ref #2757
This commit is contained in:
Florent Le Coz
2014-11-12 08:12:43 +01:00
parent e1d69806ed
commit d8da7984b2
5 changed files with 118 additions and 1 deletions
+3
View File
@@ -409,6 +409,9 @@ void IrcClient::on_channel_message(const IrcMessage& message)
"/me"s + body.substr(7, body.size() - 8), muc);
else if (body.substr(1, 8) == "VERSION\01")
this->bridge->send_iq_version_request(nick, this->hostname);
else if (body.substr(1, 5) == "PING ")
this->bridge->send_xmpp_ping_request(nick, this->hostname,
body.substr(6, body.size() - 7));
}
else
this->bridge->send_message(iid, nick, body, muc);