diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-06 21:30:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-06 21:30:56 +0000 |
commit | 2d1ac3059a0d9df1ef2420080d642d04fac8934d (patch) | |
tree | 5c66799e1d332349b978970c419e570b07d45e40 /src/core/chatnets.c | |
parent | 008ec45db2af71143951785285d7127ccf94f241 (diff) | |
download | irssi-2d1ac3059a0d9df1ef2420080d642d04fac8934d.zip |
/set autocreate_query -> /set autocreate_query_level
fixes to /ircnet, /server and /channel commands
other updates and fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@649 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/chatnets.c')
-rw-r--r-- | src/core/chatnets.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/chatnets.c b/src/core/chatnets.c index 5b1b811d..465eaa66 100644 --- a/src/core/chatnets.c +++ b/src/core/chatnets.c @@ -54,7 +54,7 @@ void *chatnet_save(CHATNET_REC *chatnet, void *parentnode) CONFIG_NODE *node = parentnode; g_return_val_if_fail(parentnode != NULL, NULL); - g_return_val_if_fail(IS_CHATNET(chatnet), NULL); + g_return_val_if_fail(chatnet != NULL, NULL); node = config_node_section(node, chatnet->name, NODE_TYPE_BLOCK); iconfig_node_clear(node); @@ -83,7 +83,7 @@ void chatnet_remove(CHATNET_REC *chatnet) g_return_if_fail(IS_CHATNET(chatnet)); signal_emit("chatnet removed", 1, chatnet); - chatnet_destroy(chatnet); + chatnet_destroy(chatnet); } void chatnet_destroy(CHATNET_REC *chatnet) @@ -135,6 +135,7 @@ static void sig_connected(SERVER_REC *server) void chatnets_init(void) { + chatnets = NULL; signal_add("event connected", (SIGNAL_FUNC) sig_connected); } |