xchat auto reconnects when net_auto_reconnect is set to 0
Bug #190986 reported by
kuwanger
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xchat (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xchat
1. Manually alter ~/.xchat2/
2. Start up X-Chat2.
3. Connect to a server.
4. Cause a ping-time (for example, disconnecting your network cable).
5. Wait about ten seconds for X-Chat2 to reconnect.
This applies to xchat v2.8.4 (2.8.4-0ubuntu5) in gutsy.
In xchat-2.
To post a comment you must log in.
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->