1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04: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 "signals.h"
#include "settings.h"
#include "servers.h"
#include "queries.h"
#include "nicklist.h"
@ -48,7 +49,8 @@ static void event_privmsg(SERVER_REC *server, const char *data,
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;
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)
{
settings_add_bool("lookandfeel", "query_trace_nick_changes", TRUE);
signal_add_first("event privmsg", (SIGNAL_FUNC) event_privmsg);
}