comparison mcabber/src/commands.c @ 1070:9eaacc0ad3a2

Use a hash for settings
author Mikael Berthe <mikael@lilotux.net>
date Sun, 03 Dec 2006 11:59:42 +0100
parents 6de60e142372
children 2a3cfb98bd5e
comparison
equal deleted inserted replaced
1069:641e6c618e5d 1070:9eaacc0ad3a2
1571 g_free(value_utf8); 1571 g_free(value_utf8);
1572 } 1572 }
1573 g_free(option_utf8); 1573 g_free(option_utf8);
1574 } 1574 }
1575 1575
1576 static void dump_alias(void *param, char *k, char *v) 1576 static void dump_alias(char *k, char *v, void *param)
1577 { 1577 {
1578 scr_LogPrint(LPRINT_NORMAL|LPRINT_NOTUTF8, "Alias %s = %s", k, v); 1578 scr_LogPrint(LPRINT_NORMAL|LPRINT_NOTUTF8, "Alias %s = %s", k, v);
1579 } 1579 }
1580 1580
1581 static void do_alias(char *arg) 1581 static void do_alias(char *arg)
1622 compl_add_category_word(COMPL_CMD, alias); 1622 compl_add_category_word(COMPL_CMD, alias);
1623 settings_set(SETTINGS_TYPE_ALIAS, alias, value); 1623 settings_set(SETTINGS_TYPE_ALIAS, alias, value);
1624 } 1624 }
1625 } 1625 }
1626 1626
1627 static void dump_bind(void *param, char *k, char *v) 1627 static void dump_bind(char *k, char *v, void *param)
1628 { 1628 {
1629 scr_LogPrint(LPRINT_NORMAL, "Key %4s is bound to: %s", k, v); 1629 scr_LogPrint(LPRINT_NORMAL, "Key %4s is bound to: %s", k, v);
1630 } 1630 }
1631 1631
1632 static void do_bind(char *arg) 1632 static void do_bind(char *arg)