1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 19:23:12 +02:00

BUILD : 1.7.4 (296) BUGS : NOTES : Next try to commit.

git-svn-id: svn://svn.anope.org/anope/trunk@296 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@185 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
keeper keeper@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-08-01 03:03:39 +00:00
parent 3422f4a798
commit dfec5ed8a7
14 changed files with 235 additions and 2416 deletions
-33
View File
@@ -443,25 +443,11 @@ int listOut(User * u)
/*************************************************************************/
void delHostCore(char *nick)
{
#ifdef USE_RDB
static char clause[128];
#endif
HostCore *tmp;
boolean found = false;
tmp = findHostCore(head, nick, &found);
if (found) {
head = deleteHostCore(head, tmp);
#ifdef USE_RDB
/* Reflect this change in the database right away. */
if (rdb_open()) {
snprintf(clause, sizeof(clause), "nick='%s'", nick);
rdb_scrub_table("anope_hs_core", clause);
rdb_close();
}
#endif
}
}
@@ -623,25 +609,6 @@ void save_hs_dbase(void)
#undef SAFE
void save_hs_rdb_dbase(void)
{
#ifdef USE_RDB
HostCore *current;
if (!rdb_open())
return;
rdb_clear_table("anope_hs_core");
current = head;
while (current != NULL) {
rdb_save_hs_core(current);
current = current->next;
}
rdb_close();
#endif
}
/*************************************************************************/
/* End of Load/Save Functions */
/*************************************************************************/