mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
Reset check_splitmode_ev to NULL after removing it,
to exclude the possibility of it being removed twice. like ircd-ratbox r25641 (jilles) reverts 788:476d29d84191
This commit is contained in:
parent
a672fbb78c
commit
6a30990367
2 changed files with 3 additions and 0 deletions
|
@ -379,6 +379,7 @@ quote_splitmode(struct Client *source_p, const char *charval, int intval)
|
|||
splitchecking = 0;
|
||||
|
||||
rb_event_delete(check_splitmode_ev);
|
||||
check_splitmode_ev = NULL;
|
||||
}
|
||||
/* ON */
|
||||
else if(newval == 1)
|
||||
|
@ -392,6 +393,7 @@ quote_splitmode(struct Client *source_p, const char *charval, int intval)
|
|||
|
||||
/* we might be deactivating an automatic splitmode, so pull the event */
|
||||
rb_event_delete(check_splitmode_ev);
|
||||
check_splitmode_ev = NULL;
|
||||
}
|
||||
/* AUTO */
|
||||
else if(newval == 2)
|
||||
|
|
|
@ -995,6 +995,7 @@ check_splitmode(void *unused)
|
|||
"Network rejoined, deactivating splitmode");
|
||||
|
||||
rb_event_delete(check_splitmode_ev);
|
||||
check_splitmode_ev = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue