1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Added /SET query_trace_nick_changes, which tells if irssi should track nick

changes in queries (eg. you get a msg from nick who's user@host is the same
as you already have query with). This feature has existed before, but now
you can turn if OFF if you want :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2377 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-02 22:34:06 +00:00 committed by cras
parent 4520455eac
commit 77e866c542

View File

@ -20,6 +20,7 @@
#include "module.h" #include "module.h"
#include "signals.h" #include "signals.h"
#include "settings.h"
#include "servers.h" #include "servers.h"
#include "queries.h" #include "queries.h"
#include "nicklist.h" #include "nicklist.h"
@ -48,7 +49,8 @@ static void event_privmsg(SERVER_REC *server, const char *data,
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
if (nick == NULL || address == NULL || ischannel(*data)) if (nick == NULL || address == NULL || ischannel(*data) ||
!settings_get_bool("query_trace_nick_changes"))
return; return;
query = query_find(server, nick); query = query_find(server, nick);
@ -64,6 +66,8 @@ static void event_privmsg(SERVER_REC *server, const char *data,
void fe_irc_queries_init(void) void fe_irc_queries_init(void)
{ {
settings_add_bool("lookandfeel", "query_trace_nick_changes", TRUE);
signal_add_first("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_add_first("event privmsg", (SIGNAL_FUNC) event_privmsg);
} }