Changeset eb4c81a


Ignore:
Timestamp:
2012-01-30T22:23:45Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d2abcae
Parents:
cf0dbdd
Message:

Try to show the user_split info for a protocol in "help purple $PROTOCOL".
This in response to #898. I could also try to make each split a separate
setting but that'd make the Jabber module very ugly for example, requiring
the user to split up his/her JID. Let's hope people read this help info..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    rcf0dbdd reb4c81a  
    106106        g_string_printf( help, "BitlBee libpurple module %s (%s).\n\nSupported settings:",
    107107                                (char*) acc->prpl->name, prpl->info->name );
     108       
     109        if( pi->user_splits )
     110        {
     111                GList *l;
     112                g_string_append_printf( help, "\n* username: Username" );
     113                for( l = pi->user_splits; l; l = l->next )
     114                        g_string_append_printf( help, "%c%s",
     115                                                purple_account_user_split_get_separator( l->data ),
     116                                                purple_account_user_split_get_text( l->data ) );
     117        }
    108118       
    109119        /* Convert all protocol_options into per-account setting variables. */
Note: See TracChangeset for help on using the changeset viewer.