fix notify mechanics

v1
Tony Olagbaiye 3 years ago
parent 3133302156
commit fe9f9b570f
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910

@ -167,7 +167,7 @@
Please submit a pull request or create an issue Please submit a pull request or create an issue
to add a new or missing feature. to add a new or missing feature.
* Testemonials * Testimonials
"Weechat-Strophe - for the discerning dual IRCer XMPPer" -- [[github.com/janicez][Ellenor et al Bjornsdottir]] "Weechat-Strophe - for the discerning dual IRCer XMPPer" -- [[github.com/janicez][Ellenor et al Bjornsdottir]]

@ -167,6 +167,8 @@ struct t_gui_buffer *channel__create_buffer(struct t_account *account,
xmpp_jid_node(account->context, account_jid(account))); xmpp_jid_node(account->context, account_jid(account)));
weechat_buffer_set(ptr_buffer, "name", name); weechat_buffer_set(ptr_buffer, "name", name);
weechat_buffer_set(ptr_buffer, "notify",
(type == CHANNEL_TYPE_PM) ? "3" : "1");
weechat_buffer_set(ptr_buffer, "localvar_set_type", weechat_buffer_set(ptr_buffer, "localvar_set_type",
(type == CHANNEL_TYPE_PM) ? "private" : "channel"); (type == CHANNEL_TYPE_PM) ? "private" : "channel");
weechat_buffer_set(ptr_buffer, "localvar_set_nick", weechat_buffer_set(ptr_buffer, "localvar_set_nick",

@ -563,7 +563,7 @@ int connection__message_handler(xmpp_conn_t *conn, xmpp_stanza_t *stanza, void *
&& weechat_strcasecmp(from_bare, account_jid(account)) != 0) && weechat_strcasecmp(from_bare, account_jid(account)) != 0)
weechat_string_dyn_concat(dyn_tags, ",notify_private", -1); weechat_string_dyn_concat(dyn_tags, ",notify_private", -1);
else else
weechat_string_dyn_concat(dyn_tags, ",log1", -1); weechat_string_dyn_concat(dyn_tags, ",notify_message,log1", -1);
const char *edit = replace ? "* " : ""; // Losing which message was edited, sadly const char *edit = replace ? "* " : ""; // Losing which message was edited, sadly
if (x && text == cleartext && channel->transport != CHANNEL_TRANSPORT_PGP) if (x && text == cleartext && channel->transport != CHANNEL_TRANSPORT_PGP)

Loading…
Cancel
Save