diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2007-11-14 23:02:40 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-11-14 23:02:40 +0000 |
commit | 90b66dbe6c11ca5e4484f14cd223f1852c15e783 (patch) | |
tree | b2ac294e433083c167b325a60902589afcbe88ad /src/irc/proxy | |
parent | fabecae6e640f62734d4e5711f1f4a49658c2993 (diff) | |
download | irssi-90b66dbe6c11ca5e4484f14cd223f1852c15e783.zip |
Rework redirections to deal with multiple concurrent redirects better.
These mostly happen when doing remote whois and the
target server is slow.
The code uses the source server but will try to do what it
can if servers think they need to mask it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4638 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/proxy')
-rw-r--r-- | src/irc/proxy/listen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index c250ed16..bab08421 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -391,7 +391,7 @@ static void sig_server_event(IRC_SERVER_REC *server, const char *line, while (*args == ' ') args++; g_strdown(event); - signal = server_redirect_peek_signal(server, event, args, &redirected); + signal = server_redirect_peek_signal(server, nick, event, args, &redirected); if ((signal != NULL && strncmp(signal, "proxy ", 6) != 0) || (signal == NULL && redirected)) { /* we want to send this to one client (or proxy itself) only */ @@ -401,7 +401,7 @@ static void sig_server_event(IRC_SERVER_REC *server, const char *line, } if (signal != NULL) { - server_redirect_get_signal(server, event, args); + server_redirect_get_signal(server, nick, event, args); if (sscanf(signal+6, "%p", &client) == 1) { /* send it to specific client only */ if (g_slist_find(proxy_clients, client) != NULL) |