Only send ping requests to client that support it

This commit is contained in:
James Booth
2017-06-16 00:59:21 +01:00
parent 970ab94ed3
commit f189dbc687
4 changed files with 105 additions and 9 deletions

View File

@@ -5868,6 +5868,11 @@ cmd_ping(ProfWin *window, const char *const command, gchar **args)
return TRUE;
}
if (args[0] != NULL && caps_jid_has_feature(args[0], XMPP_FEATURE_PING) == FALSE) {
cons_show("%s does not support ping requests.", args[0]);
return TRUE;
}
iq_send_ping(args[0]);
if (args[0] == NULL) {