/* silc-queries.c : irssi Copyright (C) 2000 Timo Sirainen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "module.h" #include "signals.h" #include "misc.h" #include "silc-queries.h" QUERY_REC *silc_query_create(SILC_SERVER_REC *server, const char *nick, int automatic) { QUERY_REC *rec; g_return_val_if_fail(server == NULL || IS_SILC_SERVER(server), NULL); g_return_val_if_fail(nick != NULL, NULL); rec = g_new0(QUERY_REC, 1); rec->chat_type = SILC_PROTOCOL; rec->name = g_strdup(nick); rec->server = (SERVER_REC *) server; query_init(rec, automatic); return rec; } void silc_queries_init(void) { } void silc_queries_deinit(void) { }