diff options
author | Timo Sirainen <cras@irssi.org> | 2004-03-23 22:47:25 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-03-23 22:47:25 +0000 |
commit | 5ee91babf86dc6a7624c2a256cce968a11f64883 (patch) | |
tree | 5ce4e9ebbab886c2ce94d23b0ff243f34e96de56 /src/irc | |
parent | 0604a9fda7d8fd3e073e101235bb1f8bfd78a55b (diff) | |
download | irssi-5ee91babf86dc6a7624c2a256cce968a11f64883.zip |
crashfix by Valentin Batz
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3240 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/proxy/listen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index 289a4163..2ab1373c 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -170,22 +170,22 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args, client->want_ctcp = 1; for (tmp = proxy_clients; tmp != NULL; tmp = tmp->next) { CLIENT_REC *rec = tmp->data; - if ((g_strcasecmp(client->server->connrec->chatnet,rec->server->connrec->chatnet) == 0) && + if ((g_strcasecmp(client->listen->ircnet,rec->listen->ircnet) == 0) && (client->tag != rec->tag)) { if (rec->want_ctcp == 1) proxy_outdata(rec, ":%s NOTICE %s :Another client is now receiving CTCPs sent to %s\n", - rec->proxy_address, rec->nick,rec->server->connrec->chatnet); - rec->want_ctcp=0; + rec->proxy_address, rec->nick, rec->listen->ircnet); + rec->want_ctcp = 0; } } proxy_outdata(client, ":%s NOTICE %s :You're now receiving CTCPs sent to %s\n", - client->proxy_address, client->nick,client->server->connrec->chatnet); + client->proxy_address, client->nick,client->listen->ircnet); } else if (g_strcasecmp(args, "CTCP OFF") == 0) { /* client wants proxy to handle all ctcps */ client->want_ctcp = 0; proxy_outdata(client, ":%s NOTICE %s :Proxy is now handling itself CTCPs sent to %s\n", - client->proxy_address, client->nick,client->server->connrec->chatnet); + client->proxy_address, client->nick, client->listen->ircnet); } return; } |