diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 9bceb859..59cff0db 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -1088,8 +1088,8 @@ _autoping_timed_send(xmpp_conn_t *const conn, void *const userdata) return 1; } - if (connection_supports(STANZA_NS_PING) == FALSE) { - log_warning("Server doesn't advertise %s feature, disabling autoping.", STANZA_NS_PING); + if (connection_supports(XMPP_FEATURE_PING) == FALSE) { + log_warning("Server doesn't advertise %s feature, disabling autoping.", XMPP_FEATURE_PING); prefs_set_autoping(0); cons_show_error("Server ping not supported, autoping disabled."); xmpp_conn_t *conn = connection_get_conn();