mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #824 from dequis/more-netsplit-revert
Revert more of the netsplit print optimisation to fix crashes
This commit is contained in:
commit
cfcc021c81
@ -245,20 +245,18 @@ static void print_netjoins(NETJOIN_SERVER_REC *server, const char *filter_channe
|
|||||||
message before it. */
|
message before it. */
|
||||||
static void sig_print_starting(TEXT_DEST_REC *dest)
|
static void sig_print_starting(TEXT_DEST_REC *dest)
|
||||||
{
|
{
|
||||||
NETJOIN_SERVER_REC *rec;
|
GSList *tmp, *next;
|
||||||
|
|
||||||
if (printing_joins)
|
if (printing_joins)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!IS_IRC_SERVER(dest->server))
|
for (tmp = joinservers; tmp != NULL; tmp = next) {
|
||||||
return;
|
NETJOIN_SERVER_REC *server = tmp->data;
|
||||||
|
|
||||||
if (!server_ischannel(dest->server, dest->target))
|
next = tmp->next;
|
||||||
return;
|
if (server->netjoins != NULL)
|
||||||
|
print_netjoins(server, NULL);
|
||||||
rec = netjoin_find_server(IRC_SERVER(dest->server));
|
}
|
||||||
if (rec != NULL && rec->netjoins != NULL)
|
|
||||||
print_netjoins(rec, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sig_check_netjoins(void)
|
static int sig_check_netjoins(void)
|
||||||
|
@ -247,21 +247,18 @@ static int check_server_splits(IRC_SERVER_REC *server)
|
|||||||
message before it. */
|
message before it. */
|
||||||
static void sig_print_starting(TEXT_DEST_REC *dest)
|
static void sig_print_starting(TEXT_DEST_REC *dest)
|
||||||
{
|
{
|
||||||
IRC_SERVER_REC *rec;
|
GSList *tmp;
|
||||||
|
|
||||||
if (printing_splits)
|
if (printing_splits)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!IS_IRC_SERVER(dest->server))
|
for (tmp = servers; tmp != NULL; tmp = tmp->next) {
|
||||||
return;
|
IRC_SERVER_REC *rec = tmp->data;
|
||||||
|
|
||||||
if (!server_ischannel(dest->server, dest->target))
|
if (IS_IRC_SERVER(rec) && rec->split_servers != NULL)
|
||||||
return;
|
|
||||||
|
|
||||||
rec = IRC_SERVER(dest->server);
|
|
||||||
if (rec->split_servers != NULL)
|
|
||||||
print_splits(rec, NULL);
|
print_splits(rec, NULL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int sig_check_splits(void)
|
static int sig_check_splits(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user