mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 02:00:20 +00:00
Add an option to disable rejoin on auto reconnect
This change adds an option `irc_reconnect_rejoin` (default ON) which when turned OFF will prevent hexchat from rejoining channels after an auto reconnect. hexchat/hexchat#2069
This commit is contained in:
@@ -681,22 +681,25 @@ static void
|
||||
auto_reconnect (server *serv, int send_quit, int err)
|
||||
{
|
||||
session *s;
|
||||
GSList *list;
|
||||
int del;
|
||||
|
||||
if (serv->server_session == NULL)
|
||||
return;
|
||||
|
||||
list = sess_list;
|
||||
while (list) /* make sure auto rejoin can work */
|
||||
if (prefs.hex_irc_reconnect_rejoin)
|
||||
{
|
||||
s = list->data;
|
||||
if (s->type == SESS_CHANNEL && s->channel[0])
|
||||
GSList *list;
|
||||
list = sess_list;
|
||||
while (list) /* make sure auto rejoin can work */
|
||||
{
|
||||
strcpy (s->waitchannel, s->channel);
|
||||
strcpy (s->willjoinchannel, s->channel);
|
||||
s = list->data;
|
||||
if (s->type == SESS_CHANNEL && s->channel[0])
|
||||
{
|
||||
strcpy (s->waitchannel, s->channel);
|
||||
strcpy (s->willjoinchannel, s->channel);
|
||||
}
|
||||
list = list->next;
|
||||
}
|
||||
list = list->next;
|
||||
}
|
||||
|
||||
if (serv->connected)
|
||||
|
||||
Reference in New Issue
Block a user