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
346aca1799
commit
0ae330b43f
|
@ -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 New Issue