summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-chatnets.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-01 00:26:46 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-01 00:26:46 +0000
commit28a7908e7372fe0e81dd439b6559bc2abe3ea6e8 (patch)
treef911b89cd7d5a5f5e9fb206c380cd5ddebe1b987 /src/irc/core/irc-chatnets.c
parent03091413eeb0935adfad1bee7b02a0161f403835 (diff)
downloadirssi-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-chatnets.c')
-rw-r--r--src/irc/core/irc-chatnets.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/irc/core/irc-chatnets.c b/src/irc/core/irc-chatnets.c
index 5128d57f..4eda9401 100644
--- a/src/irc/core/irc-chatnets.c
+++ b/src/irc/core/irc-chatnets.c
@@ -36,7 +36,7 @@ static void ircnet_read(CONFIG_NODE *node)
return;
rec = g_new0(IRC_CHATNET_REC, 1);
- rec->chat_type = module_get_uniq_id("IRC CHATNET", 0);
+ rec->chat_type = IRC_PROTOCOL;
rec->max_cmds_at_once = config_node_get_int(node, "cmdmax", 0);
rec->cmd_queue_speed = config_node_get_int(node, "cmdspeed", 0);
@@ -87,7 +87,7 @@ void ircnet_create(IRC_CHATNET_REC *rec)
{
g_return_if_fail(rec != NULL);
- rec->chat_type = module_get_uniq_id("IRC CHATNET", 0);
+ rec->chat_type = IRC_PROTOCOL;
ircnet_save(rec);
chatnet_create(CHATNET(rec));
@@ -127,6 +127,4 @@ void irc_chatnets_deinit(void)
{
signal_remove("chatnet removed", (SIGNAL_FUNC) sig_chatnet_removed);
signal_remove("setup reread", (SIGNAL_FUNC) read_ircnets);
-
- module_uniq_destroy("IRC CHATNET");
}