Comment 1 for bug 190986

Revision history for this message
kuwanger (kuwanger) wrote :

Here's a patch that should produce the desired results:

diff -ur xchat-2.8.4.orig/src/common/xchat.c xchat-2.8.4/src/common/xchat.c
--- xchat-2.8.4.orig/src/common/xchat.c 2007-06-01 08:32:46.000000000 -0400
+++ xchat-2.8.4/src/common/xchat.c 2008-02-28 06:34:43.000000000 -0500
@@ -177,7 +177,10 @@
                                sprintf (tbuf, "%d", lag);
                                EMIT_SIGNAL (XP_TE_PINGTIMEOUT, serv->server_session, tbuf, NULL,
                                                                 NULL, NULL, 0);
- serv->auto_reconnect (serv, FALSE, -1);
+ if (prefs.autoreconnect)
+ serv->auto_reconnect (serv, FALSE, -1);
+ else
+ serv->disconnect (serv->server_session, FALSE, -1);
                        } else
                        {
                                snprintf (tbuf, sizeof (tbuf), "LAG%lu", tim);