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:
Jilles Tjoelker 2008-06-29 01:37:11 +02:00
parent a672fbb78c
commit 6a30990367
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -995,6 +995,7 @@ check_splitmode(void *unused)
"Network rejoined, deactivating splitmode");
rb_event_delete(check_splitmode_ev);
check_splitmode_ev = NULL;
}
}
}