mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-25 16:44:10 +01:00
Removed ideas/typos/bugs when they are aborted.
This commit is contained in:
parent
30e0ad1041
commit
ebfc7ce54b
3 changed files with 15 additions and 0 deletions
11
src/ibt.c
11
src/ibt.c
|
|
@ -1170,3 +1170,14 @@ void free_ibt_lists()
|
|||
}
|
||||
}
|
||||
|
||||
void clean_ibt_list(int mode)
|
||||
{
|
||||
IBT_DATA *ibtData = get_first_ibt(mode), *ibtTemp;
|
||||
while (ibtData) {
|
||||
ibtTemp = ibtData;
|
||||
ibtData = ibtData->next;
|
||||
if (!ibtTemp->body || !*ibtTemp->body) {
|
||||
free_ibt(mode, ibtTemp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue