diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-17 19:44:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-17 19:44:22 +0000 |
commit | be6ba53fa47bc546279a2575523281845fe80da9 (patch) | |
tree | 2f08f6281cfbd38a1df2abe4fe69ccfd6f208f51 /src/irc/core/irc-queries.c | |
parent | 513e140bcebce617d6078a9532ab9976437c3ef6 (diff) | |
download | irssi-be6ba53fa47bc546279a2575523281845fe80da9.zip |
Config file: ircnets -> chatnets, added type = "chat protocol" to
chatnet config. Moved reading chatnets to core. Lots of other
multiprotocol updates.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-queries.c')
-rw-r--r-- | src/irc/core/irc-queries.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index 2204f2c3..87aed832 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -40,21 +40,6 @@ QUERY_REC *irc_query_create(const char *server_tag, return rec; } -static void sig_query_create(QUERY_REC **query, - void *chat_type, const char *server_tag, - const char *nick, void *automatic) -{ - if (chat_protocol_lookup("IRC") != GPOINTER_TO_INT(chat_type)) - return; - - g_return_if_fail(query != NULL); - g_return_if_fail(nick != NULL); - - *query = irc_query_create(server_tag, nick, - GPOINTER_TO_INT(automatic)); - signal_stop(); -} - static void event_privmsg(IRC_SERVER_REC *server, const char *data, const char *nick, const char *address) { @@ -92,14 +77,12 @@ static void event_nick(SERVER_REC *server, const char *data, void irc_queries_init(void) { - signal_add("query create", (SIGNAL_FUNC) sig_query_create); signal_add_last("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_add("event nick", (SIGNAL_FUNC) event_nick); } void irc_queries_deinit(void) { - signal_remove("query create", (SIGNAL_FUNC) sig_query_create); signal_remove("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_remove("event nick", (SIGNAL_FUNC) event_nick); } |