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 346aca1799
commit 0ae330b43f
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;
}
}
}