5 Author: Jochen Eisinger <c0ffee@penguin-breeder.org>
7 Copyright (C) 2003 Jochen Eisinger
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
27 #include "special-vars.h"
35 #include "window-items.h"
36 #include "fe-queries.h"
37 #include "fe-messages.h"
38 #include "hilight-text.h"
39 #include "printtext.h"
40 #include "module-formats.h"
42 static void sig_signed_message_query(SERVER_REC *server, const char *msg,
43 const char *nick, const char *address,
48 /* create query window if needed */
49 query = privmsg_get_query(server, nick, FALSE, MSGLEVEL_MSGS);
51 /* reset the query's last_unread_msg timestamp */
53 query->last_unread_msg = time(NULL);
56 void fe_silc_queries_init(void)
58 signal_add_first("message signed_private",
59 (SIGNAL_FUNC) sig_signed_message_query);
62 void fe_silc_queries_deinit(void)
64 signal_remove("message signed_private",
65 (SIGNAL_FUNC) sig_signed_message_query);