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 | |
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')
-rw-r--r-- | src/core/chatnets.c | 5 | ||||
-rw-r--r-- | src/core/modules.c | 1 | ||||
-rw-r--r-- | src/core/server-rec.h | 4 | ||||
-rw-r--r-- | src/core/servers-setup.c | 1 |
4 files changed, 9 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); } diff --git a/src/core/modules.c b/src/core/modules.c index 2c3acbd7..e95eaf2a 100644 --- a/src/core/modules.c +++ b/src/core/modules.c @@ -338,6 +338,7 @@ void module_unload(MODULE_REC *module) module_deinit(); g_free(deinitfunc); + signals_remove_module(module->name); g_module_close(module->gmodule); g_free(module->name); g_free(module); diff --git a/src/core/server-rec.h b/src/core/server-rec.h index 61aaa2d8..e9c069b7 100644 --- a/src/core/server-rec.h +++ b/src/core/server-rec.h @@ -36,6 +36,10 @@ int server_operator:1; int usermode_away:1; int banned:1; /* not allowed to connect to this server */ +time_t lag_sent; /* 0 or time when last lag query was sent to server */ +time_t lag_last_check; /* last time we checked lag */ +int lag; /* server lag in milliseconds */ + GSList *channels; GSList *queries; diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index 526854f3..17300930 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -385,6 +385,7 @@ static void server_setup_destroy(SERVER_SETUP_REC *rec) void server_setup_add(SERVER_SETUP_REC *rec) { + rec->type = module_get_uniq_id("SERVER SETUP", 0); if (g_slist_find(setupservers, rec) == NULL) setupservers = g_slist_append(setupservers, rec); server_setup_save(rec); |