mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 04:46:22 +00:00
introduce priority support
add new command /priority <int> improve jabber_update_presence() use jabber_update_presence() for sending initial presence save priority and status string to jabber_conn structure
This commit is contained in:
@@ -122,7 +122,7 @@ stanza_create_presence(xmpp_ctx_t *ctx, const char * const show,
|
||||
xmpp_stanza_t *presence = xmpp_stanza_new(ctx);
|
||||
xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE);
|
||||
|
||||
if (strcmp(show, STANZA_TEXT_ONLINE) != 0) {
|
||||
if (show != NULL) {
|
||||
xmpp_stanza_t *show_stanza = xmpp_stanza_new(ctx);
|
||||
xmpp_stanza_set_name(show_stanza, STANZA_NAME_SHOW);
|
||||
xmpp_stanza_t *text = xmpp_stanza_new(ctx);
|
||||
|
||||
Reference in New Issue
Block a user