mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 01:16:21 +00:00
Show message when server does not support ping
This commit is contained in:
@@ -5863,6 +5863,11 @@ cmd_ping(ProfWin *window, const char *const command, gchar **args)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (args[0] == NULL && connection_supports(XMPP_FEATURE_PING) == FALSE) {
|
||||
cons_show("Server does not support ping requests.");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
iq_send_ping(args[0]);
|
||||
|
||||
if (args[0] == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user