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-queries.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-queries.c')
-rw-r--r-- | src/irc/core/irc-queries.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index b013d9cf..d2dfee1c 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -34,21 +34,13 @@ QUERY_REC *irc_query_create(IRC_SERVER_REC *server, g_return_val_if_fail(nick != NULL, NULL); rec = g_new0(QUERY_REC, 1); - rec->chat_type = module_get_uniq_id("IRC QUERY", 0); + rec->chat_type = IRC_PROTOCOL; rec->name = g_strdup(nick); rec->server = (SERVER_REC *) server; query_init(rec, automatic); return rec; } -static void sig_connected(SERVER_REC *server) -{ - if (!IS_IRC_SERVER(server)) - return; - - server->query_type = module_get_uniq_id("IRC QUERY", 0);; -} - static void event_privmsg(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr) { char *params, *target, *msg; @@ -94,16 +86,12 @@ static void event_nick(const char *data, IRC_SERVER_REC *server, const char *ori void irc_queries_init(void) { - signal_add("server connected", (SIGNAL_FUNC) sig_connected); signal_add_last("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_add("event nick", (SIGNAL_FUNC) event_nick); } void irc_queries_deinit(void) { - signal_remove("server connected", (SIGNAL_FUNC) sig_connected); signal_remove("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_remove("event nick", (SIGNAL_FUNC) event_nick); - - module_uniq_destroy("IRC QUERY"); } |