aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-10 00:23:34 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-10 00:23:34 +0100
commitd8acfd3ba84e018554d8564f08e9a50cde56b4a4 (patch)
tree8ea51d334786dc3f1551549235595aba95a24a59
parentbda2975f43df2fd2409243082f6d98dc8c9e6fde (diff)
Purple lists mix up key and value; key == what the user sees, *value* is
what the module understands. This should hopefully resolve QQ issues.
-rw-r--r--protocols/purple/purple.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 90312d0d..edd10219 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -140,8 +140,11 @@ static void purple_init( account_t *acc )
for( io = purple_account_option_get_list( o ); io; io = io->next )
{
PurpleKeyValuePair *kv = io->data;
- opts = g_slist_append( opts, kv->key );
- g_string_append_printf( help, "%s, ", kv->key );
+ opts = g_slist_append( opts, kv->value );
+ if( strcmp( kv->value, kv->key ) != 0 )
+ g_string_append_printf( help, "%s (%s), ", kv->value, kv->key );
+ else
+ g_string_append_printf( help, "%s, ", kv->value );
}
g_string_truncate( help, help->len - 2 );
eval = set_eval_list;