forked from PsychoticNinja/irssi
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:
parent
9cef658661
commit
81268205ca
@ -103,6 +103,9 @@ static void signal_query_nick_changed(QUERY_REC *query, const char *oldnick)
|
|||||||
{
|
{
|
||||||
g_return_if_fail(query != NULL);
|
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,
|
signal_emit("window item changed", 2,
|
||||||
window_item_window((WI_ITEM_REC *) query), query);
|
window_item_window((WI_ITEM_REC *) query), query);
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "servers.h"
|
#include "servers.h"
|
||||||
#include "queries.h"
|
#include "queries.h"
|
||||||
|
#include "nicklist.h"
|
||||||
|
|
||||||
#include "irc.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
|
address. it was probably a nick change or reconnect to
|
||||||
server, so rename the query. */
|
server, so rename the query. */
|
||||||
query = query_find_address(server, address);
|
query = query_find_address(server, address);
|
||||||
if (query != NULL) {
|
if (query != NULL)
|
||||||
signal_emit("message nick", 4, query->server,
|
|
||||||
nick, query->name, query->address);
|
|
||||||
query_change_nick(query, nick);
|
query_change_nick(query, nick);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user