diff options
Diffstat (limited to 'src/botserv.c')
-rw-r--r-- | src/botserv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/botserv.c b/src/botserv.c index 46f5fe3ac..827f3b392 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -544,6 +544,7 @@ void save_bs_rdb_dbase(void) if (rdb_tag_table("anope_bs_core") == 0) { alog("Unable to tag table 'anope_bs_core' - BotServ RDB save failed."); + rdb_close(); return; } @@ -551,15 +552,14 @@ void save_bs_rdb_dbase(void) for (bi = botlists[i]; bi; bi = bi->next) { if (rdb_save_bs_core(bi) == 0) { alog("Unable to save BotInfo for %s - BotServ RDB save failed.", bi->nick); + rdb_close(); return; } } } - if (rdb_clean_table("anope_bs_core") == 0) { + if (rdb_clean_table("anope_bs_core") == 0) alog("Unable to clean table 'anope_bs_core' - BotServ RDB save failed."); - return; - } rdb_close(); #endif |