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);
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 8.4.orig/ src/common/ xchat.c 2007-06-01 08:32:46.000000000 -0400 8.4/src/ common/ xchat.c 2008-02-28 06:34:43.000000000 -0500
sprintf (tbuf, "%d", lag);
EMIT_ SIGNAL (XP_TE_PINGTIMEOUT, serv->server_ session, tbuf, NULL,
NULL, NULL, 0); reconnect (serv, FALSE, -1); autoreconnect) reconnect (serv, FALSE, -1); server_ session, FALSE, -1);
} else
{
snprintf (tbuf, sizeof (tbuf), "LAG%lu", tim);
--- xchat-2.
+++ xchat-2.
@@ -177,7 +177,10 @@
- serv->auto_
+ if (prefs.
+ serv->auto_
+ else
+ serv->disconnect (serv->