diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-01 20:48:10 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-01 20:48:10 +0000 |
commit | c1a191955ba9903e1dc07b49886a9ce52fdf4207 (patch) | |
tree | a471b760df744b84e24c4e898f8562bc8f82c999 /src/fe-common | |
parent | 8c2799b5f8da6d16808e5a25265db3198a7210d1 (diff) | |
download | irssi-c1a191955ba9903e1dc07b49886a9ce52fdf4207.zip |
Chat protocol updates.
Module loading tries to load first from home dir, then the global dir.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@704 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-server.c | 2 | ||||
-rw-r--r-- | src/fe-common/core/window-save.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-server.c b/src/fe-common/core/fe-server.c index 32fca57f..53160037 100644 --- a/src/fe-common/core/fe-server.c +++ b/src/fe-common/core/fe-server.c @@ -102,7 +102,7 @@ static void cmd_server_add(const char *data) signal_emit("server add create", 2, &rec, optlist); if (rec == NULL) { /* no chatnet option specified, use the first. */ - g_hash_table_insert(optlist, (char *) chat_protocol_get_rec(1)->name, ""); + g_hash_table_insert(optlist, chat_protocol_find_id(1)->name, ""); signal_emit("server add create", 2, &rec, optlist); if (rec == NULL) { /* bug? */ diff --git a/src/fe-common/core/window-save.c b/src/fe-common/core/window-save.c index 11125b61..61d2bb5e 100644 --- a/src/fe-common/core/window-save.c +++ b/src/fe-common/core/window-save.c @@ -130,7 +130,7 @@ static void window_save_items(WINDOW_REC *window, CONFIG_NODE *node) subnode = config_node_section(node, NULL, NODE_TYPE_BLOCK); iconfig_node_set_str(subnode, "type", type); - type = chat_protocol_get_rec(rec->chat_type)->name; + type = chat_protocol_find_id(rec->chat_type)->name; iconfig_node_set_str(subnode, "chat_type", type); iconfig_node_set_str(subnode, "name", rec->name); |