summaryrefslogtreecommitdiff
path: root/src/botserv.c
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-12-24 17:51:32 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-12-24 17:51:32 +0000
commit4e409e31cb648962372b4b2b7315ab4e4f5478de (patch)
treeee535e4c04e4a18bc1db163a129830232f10e052 /src/botserv.c
parent6e7add309dd9d985666e1107bd5c840faa881137 (diff)
BUILD : 1.7.17 (1210) BUGS : 645 646 647 NOTES : Fixed anoperc restart, nickchanges on TS6, typo in CHAN_REGISTER_NONE_CHANNEL; added error messages when RDB functions fail (thx heinz)
git-svn-id: svn://svn.anope.org/anope/trunk@1210 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@929 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/botserv.c')
-rw-r--r--src/botserv.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/botserv.c b/src/botserv.c
index e416be46f..ae02dfd42 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -540,15 +540,24 @@ void save_bs_rdb_dbase(void)
if (!rdb_open())
return;
- rdb_tag_table("anope_bs_core");
+ if (rdb_tag_table("anope_bs_core") == 0) {
+ alog("Unable to tag table 'anope_bs_core' - BotServ RDB save failed.");
+ return;
+ }
for (i = 0; i < 256; i++) {
for (bi = botlists[i]; bi; bi = bi->next) {
- rdb_save_bs_core(bi);
+ if (rdb_save_bs_core(bi) == 0) {
+ alog("Unable to save BotInfo for %s - BotServ RDB save failed.", bi->nick);
+ return;
+ }
}
}
- rdb_clean_table("anope_bs_core");
+ if (rdb_clean_table("anope_bs_core") == 0) {
+ alog("Unable to clean table 'anope_bs_core' - BotServ RDB save failed.");
+ return;
+ }
rdb_close();
#endif