mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
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
This commit is contained in:
parent
8c2799b5f8
commit
c1a191955b
5 changed files with 51 additions and 60 deletions
|
|
@ -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? */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue