diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-01 17:13:55 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-01 17:13:55 +0000 |
commit | c2ea82642d6f948f8a8ad6a94483aabd795f64e5 (patch) | |
tree | 02af96e3ce741b0ea988e1770508a2bc37712977 /src/irc/core/irc-queries.c | |
parent | 21865aa8de9237b73adfbbf85513d13fc808e9dc (diff) | |
download | irssi-c2ea82642d6f948f8a8ad6a94483aabd795f64e5.zip |
Some query changes. They should now work properly with /SAVEWINDOWS
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1043 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-queries.c')
-rw-r--r-- | src/irc/core/irc-queries.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index 914b3308..2204f2c3 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -25,34 +25,33 @@ #include "irc.h" #include "irc-queries.h" -QUERY_REC *irc_query_create(IRC_SERVER_REC *server, +QUERY_REC *irc_query_create(const char *server_tag, const char *nick, int automatic) { QUERY_REC *rec; - g_return_val_if_fail(server == NULL || IS_IRC_SERVER(server), NULL); g_return_val_if_fail(nick != NULL, NULL); rec = g_new0(QUERY_REC, 1); rec->chat_type = IRC_PROTOCOL; rec->name = g_strdup(nick); - rec->server = (SERVER_REC *) server; + rec->server_tag = g_strdup(server_tag); query_init(rec, automatic); return rec; } static void sig_query_create(QUERY_REC **query, - void *chat_type, IRC_SERVER_REC *server, + 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(server == NULL || IS_IRC_SERVER(server)); g_return_if_fail(query != NULL); g_return_if_fail(nick != NULL); - *query = irc_query_create(server, nick, GPOINTER_TO_INT(automatic)); + *query = irc_query_create(server_tag, nick, + GPOINTER_TO_INT(automatic)); signal_stop(); } |