mirror of
https://github.com/profanity-im/profanity.git
synced 2025-05-17 08:08:23 -04:00
Display headline sender
This commit is contained in:
parent
a17544d962
commit
492efc432c
@ -118,7 +118,10 @@ _handle_headline(xmpp_stanza_t* const stanza)
|
||||
if (body) {
|
||||
char* text = xmpp_stanza_get_text(body);
|
||||
if (text) {
|
||||
cons_show("Headline: %s", text);
|
||||
const char* const stanza_from = xmpp_stanza_get_from(stanza);
|
||||
if (stanza_from) {
|
||||
cons_show("Headline from %s: %s", stanza_from, text);
|
||||
}
|
||||
xmpp_free(connection_get_ctx(), text);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user