Ignore:
Timestamp:
2016-03-20T03:58:05Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
4e0e590
Parents:
63825d6
git-author:
dequis <dx@…> (10-03-16 05:20:31)
git-committer:
dequis <dx@…> (20-03-16 03:58:05)
Message:

jabber: Add "always_use_nicks" setting, for non-anonymous MUCs

Basically the same thing as github PR #55, which fixes trac bug 415,
but this one conditionalized that behavior and uses the API introduced a
few commits ago.

I didn't think too much about the setting name and i'm open to changing
it to anything else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r63825d6 r3320d6d  
    577577        } else {
    578578                /* jabber_chat_join without the underscore is the conference.c one */
    579                 return jabber_chat_join(ic, room, final_nick, set_getstr(sets, "password"));
     579                return jabber_chat_join(ic, room, final_nick, set_getstr(sets, "password"),
     580                                        set_getbool(sets, "always_use_nicks"));
    580581        }
    581582
     
    686687void jabber_chat_add_settings(account_t *acc, set_t **head)
    687688{
     689        set_add(head, "always_use_nicks", "false", set_eval_bool, NULL);
     690
    688691        /* Meh. Stupid room passwords. Not trying to obfuscate/hide
    689692           them from the user for now. */
     
    693696void jabber_chat_free_settings(account_t *acc, set_t **head)
    694697{
     698        set_del(head, "always_use_nicks");
     699
    695700        set_del(head, "password");
    696701}
Note: See TracChangeset for help on using the changeset viewer.