diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-01 00:26:46 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-01 00:26:46 +0000 |
commit | 28a7908e7372fe0e81dd439b6559bc2abe3ea6e8 (patch) | |
tree | f911b89cd7d5a5f5e9fb206c380cd5ddebe1b987 /src/irc/core/irc-servers-setup.c | |
parent | 03091413eeb0935adfad1bee7b02a0161f403835 (diff) | |
download | irssi-28a7908e7372fe0e81dd439b6559bc2abe3ea6e8.zip |
Added chat protocol register. Changed all chat_type fields to use it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@640 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-servers-setup.c')
-rw-r--r-- | src/irc/core/irc-servers-setup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c index 73a3fa9b..0dbd6297 100644 --- a/src/irc/core/irc-servers-setup.c +++ b/src/irc/core/irc-servers-setup.c @@ -55,7 +55,7 @@ static void sig_server_create_conn(SERVER_CONNECT_REC **conn, return; rec = g_new0(IRC_SERVER_CONNECT_REC, 1); - rec->chat_type = module_get_uniq_id("IRC SERVER CONNECT", 0); + rec->chat_type = IRC_PROTOCOL; rec->alternate_nick = g_strdup(settings_get_str("alternate_nick")); *conn = (SERVER_CONNECT_REC *) rec; @@ -150,7 +150,7 @@ static void sig_server_setup_read(SERVER_SETUP_REC **setuprec, return; rec = g_new0(IRC_SERVER_SETUP_REC, 1); - rec->chat_type = module_get_uniq_id("IRC SERVER SETUP", 0); + rec->chat_type = IRC_PROTOCOL; rec->max_cmds_at_once = config_node_get_int(node, "cmds_max_at_once", 0); rec->cmd_queue_speed = config_node_get_int(node, "cmd_queue_speed", 0); @@ -191,6 +191,4 @@ void irc_servers_setup_deinit(void) signal_remove("server setup fill chatnet", (SIGNAL_FUNC) sig_server_setup_fill_chatnet); signal_remove("server setup read", (SIGNAL_FUNC) sig_server_setup_read); signal_remove("server setup saved", (SIGNAL_FUNC) sig_server_setup_saved); - - module_uniq_destroy("IRC SERVER SETUP"); } |