mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
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
This commit is contained in:
parent
7f8b0f07ec
commit
ce41d6b18a
@ -385,16 +385,19 @@ static void sig_server_event(IRC_SERVER_REC *server, const char *line,
|
|||||||
static void event_connected(IRC_SERVER_REC *server)
|
static void event_connected(IRC_SERVER_REC *server)
|
||||||
{
|
{
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
|
const char *chatnet;
|
||||||
|
|
||||||
if (!IS_IRC_SERVER(server) || server->connrec->chatnet == NULL)
|
if (!IS_IRC_SERVER(server))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
chatnet = server->connrec->chatnet;
|
||||||
for (tmp = proxy_clients; tmp != NULL; tmp = tmp->next) {
|
for (tmp = proxy_clients; tmp != NULL; tmp = tmp->next) {
|
||||||
CLIENT_REC *rec = tmp->data;
|
CLIENT_REC *rec = tmp->data;
|
||||||
|
|
||||||
if (rec->connected && rec->server == NULL &&
|
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",
|
proxy_outdata(rec, ":%s NOTICE %s :Connected to server\n",
|
||||||
rec->proxy_address, rec->nick);
|
rec->proxy_address, rec->nick);
|
||||||
rec->server = server;
|
rec->server = server;
|
||||||
|
Loading…
Reference in New Issue
Block a user