summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-11-12 06:16:10 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-11-12 08:12:43 +0100
commitd8da7984b23bf8f30b5f8f53895cbae5be50347a (patch)
treea32beb182ca95a27670cba0005ca34f90c2875fe /src/irc
parente1d69806ed7c92bdfe1bf632064bf68b3d1d266b (diff)
downloadbiboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.tar.gz
biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.tar.bz2
biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.tar.xz
biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.zip
Implement PING, user to user only (XMPP and IRC side, using CTCP PING)
ref #2757
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 90f0644..707593f 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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);