From eb4c81aec5b2dab3f3146debda59e3dde1d4ec4f Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 30 Jan 2012 22:23:45 +0000 Subject: 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.. --- protocols/purple/purple.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols') diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 8e100c8c..d107dc2f 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -106,6 +106,16 @@ static void purple_init( account_t *acc ) g_string_printf( help, "BitlBee libpurple module %s (%s).\n\nSupported settings:", (char*) acc->prpl->name, prpl->info->name ); + if( pi->user_splits ) + { + GList *l; + g_string_append_printf( help, "\n* username: Username" ); + for( l = pi->user_splits; l; l = l->next ) + g_string_append_printf( help, "%c%s", + purple_account_user_split_get_separator( l->data ), + purple_account_user_split_get_text( l->data ) ); + } + /* Convert all protocol_options into per-account setting variables. */ for( i = pi->protocol_options; i; i = i->next ) { -- cgit v1.2.3