diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-10 12:53:10 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-10 12:53:10 +0000 |
commit | ce41d6b18ac58803d58dbdf3e674e02691dd65e6 (patch) | |
tree | 03ec58f49c7b062339687d2d0ba29d3e454eaf7f /src/irc | |
parent | 7f8b0f07ec48f092b30fbe21d234ea7a50c28e91 (diff) | |
download | irssi-ce41d6b18ac58803d58dbdf3e674e02691dd65e6.zip |
If *=port was used with /SET irssiproxy_ports, connections to server weren't
sent to already connected clients.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2415 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/proxy/listen.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index d7486af8..60a48380 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -385,16 +385,19 @@ static void sig_server_event(IRC_SERVER_REC *server, const char *line, static void event_connected(IRC_SERVER_REC *server) { GSList *tmp; + const char *chatnet; - if (!IS_IRC_SERVER(server) || server->connrec->chatnet == NULL) + if (!IS_IRC_SERVER(server)) return; + chatnet = server->connrec->chatnet; for (tmp = proxy_clients; tmp != NULL; tmp = tmp->next) { CLIENT_REC *rec = tmp->data; if (rec->connected && rec->server == NULL && - (g_strcasecmp(server->connrec->chatnet, rec->listen->ircnet) == 0 || - strcmp(rec->listen->ircnet, "*") == 0)) { + (strcmp(rec->listen->ircnet, "*") == 0 || + (chatnet != NULL && + g_strcasecmp(chatnet, rec->listen->ircnet) == 0))) { proxy_outdata(rec, ":%s NOTICE %s :Connected to server\n", rec->proxy_address, rec->nick); rec->server = server; |