X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Ffe-common%2Fsilc%2Ffe-silc-queries.c;fp=apps%2Firssi%2Fsrc%2Ffe-common%2Fsilc%2Ffe-silc-queries.c;h=0000000000000000000000000000000000000000;hb=72c2de619079457f7a68100eb13385275a424a23;hp=405fd91a68fa8138ec4a223ad751c3c4bff5abeb;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;p=runtime.git diff --git a/apps/irssi/src/fe-common/silc/fe-silc-queries.c b/apps/irssi/src/fe-common/silc/fe-silc-queries.c deleted file mode 100644 index 405fd91a..00000000 --- a/apps/irssi/src/fe-common/silc/fe-silc-queries.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - - fe-silc-queries.c - - Author: Jochen Eisinger - - Copyright (C) 2003 Jochen Eisinger - - 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. - -*/ - -#include "module.h" -#include "modules.h" -#include "signals.h" -#include "themes.h" -#include "levels.h" -#include "misc.h" -#include "special-vars.h" -#include "settings.h" - -#include "servers.h" -#include "channels.h" -#include "nicklist.h" -#include "ignore.h" - -#include "window-items.h" -#include "fe-queries.h" -#include "fe-messages.h" -#include "hilight-text.h" -#include "printtext.h" -#include "module-formats.h" - -static void sig_signed_message_query(SERVER_REC *server, const char *msg, - const char *nick, const char *address, - int verified) -{ - QUERY_REC *query; - - /* create query window if needed */ - query = privmsg_get_query(server, nick, FALSE, MSGLEVEL_MSGS); - - /* reset the query's last_unread_msg timestamp */ - if (query != NULL) - query->last_unread_msg = time(NULL); -} - -void fe_silc_queries_init(void) -{ - signal_add_first("message signed_private", - (SIGNAL_FUNC) sig_signed_message_query); -} - -void fe_silc_queries_deinit(void) -{ - signal_remove("message signed_private", - (SIGNAL_FUNC) sig_signed_message_query); -}