mirror of
https://github.com/anope/anope.git
synced 2026-07-02 14:13:12 +02:00
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
This commit is contained in:
parent
6e7add309d
commit
4e409e31cb
+14
-4
@@ -331,7 +331,8 @@ void delHostCore(char *nick)
|
||||
if (rdb_open()) {
|
||||
q_nick = rdb_quote(nick);
|
||||
snprintf(clause, sizeof(clause), "nick='%s'", q_nick);
|
||||
rdb_scrub_table("anope_hs_core", clause);
|
||||
if (rdb_scrub_table("anope_hs_core", clause) == 0)
|
||||
alog("Unable to scrub table 'anope_hs_core' - HostServ RDB update failed.");
|
||||
rdb_close();
|
||||
free(q_nick);
|
||||
}
|
||||
@@ -506,15 +507,24 @@ void save_hs_rdb_dbase(void)
|
||||
if (!rdb_open())
|
||||
return;
|
||||
|
||||
rdb_tag_table("anope_hs_core");
|
||||
if (rdb_tag_table("anope_hs_core") == 0) {
|
||||
alog("Unable to tag table 'anope_hs_core' - HostServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
current = head;
|
||||
while (current != NULL) {
|
||||
rdb_save_hs_core(current);
|
||||
if (rdb_save_hs_core(current) == 0) {
|
||||
alog("Unable to save HostCore for %s - HostServ RDB save failed.", current->nick);
|
||||
return;
|
||||
}
|
||||
current = current->next;
|
||||
}
|
||||
|
||||
rdb_clean_table("anope_hs_core");
|
||||
if (rdb_clean_table("anope_hs_core") == 0) {
|
||||
alog("Unable to clean table 'anope_hs_core' - HostServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user