diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-01-30 22:23:45 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-01-30 22:23:45 +0000 |
commit | eb4c81aec5b2dab3f3146debda59e3dde1d4ec4f (patch) | |
tree | 371c85b40ad26d828118d33f451ea6825d826748 | |
parent | cf0dbddcc18a59682f66b230b1552e04373937b1 (diff) |
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..
-rw-r--r-- | protocols/purple/purple.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 ) { |