1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

The automatic query rename wrote the "nick changed" messages to channels

windows too. Now it's done only in the query window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1546 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-10 23:31:15 +00:00 committed by cras
parent 9cef658661
commit 81268205ca
2 changed files with 5 additions and 4 deletions

View File

@ -103,6 +103,9 @@ static void signal_query_nick_changed(QUERY_REC *query, const char *oldnick)
{
g_return_if_fail(query != NULL);
printformat(query->server, query->name, MSGLEVEL_NICKS,
TXT_NICK_CHANGED, oldnick, query->name, query->name);
signal_emit("window item changed", 2,
window_item_window((WI_ITEM_REC *) query), query);
}

View File

@ -22,6 +22,7 @@
#include "signals.h"
#include "servers.h"
#include "queries.h"
#include "nicklist.h"
#include "irc.h"
@ -58,11 +59,8 @@ static void event_privmsg(SERVER_REC *server, const char *data,
address. it was probably a nick change or reconnect to
server, so rename the query. */
query = query_find_address(server, address);
if (query != NULL) {
signal_emit("message nick", 4, query->server,
nick, query->name, query->address);
if (query != NULL)
query_change_nick(query, nick);
}
}
}