diff options
| author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-12-09 22:35:44 +0000 |
|---|---|---|
| committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-12-09 22:35:44 +0000 |
| commit | 6e4112460817c1a099f2143b5e5d18a23c1be621 (patch) | |
| tree | 7ed50fbba3e2779228c1ddf2811f74ce98e79344 /src/chanserv.c | |
| parent | 888fe64c6001c09622162d873375dd638c20f85f (diff) | |
BUILD : 1.7.17 (1198) BUGS : NOTES : Reviewed and updated all of the MySQL code...
git-svn-id: svn://svn.anope.org/anope/trunk@1198 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@917 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
| -rw-r--r-- | src/chanserv.c | 46 |
1 files changed, 15 insertions, 31 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index 908cb1e69..32c8a33cf 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -999,12 +999,12 @@ void save_cs_rdb_dbase(void) return; rdb_tag_table("anope_cs_info"); - rdb_scrub_table("anope_ms_info", "serv='CHAN'"); - rdb_clear_table("anope_cs_access"); - rdb_clear_table("anope_cs_levels"); - rdb_clear_table("anope_cs_akicks"); - rdb_clear_table("anope_cs_badwords"); - rdb_clear_table("anope_cs_ttb"); + rdb_tag_table("anope_cs_access"); + rdb_tag_table("anope_cs_levels"); + rdb_tag_table("anope_cs_akicks"); + rdb_tag_table("anope_cs_badwords"); + rdb_tag_table("anope_cs_ttb"); + rdb_tag_table_where("anope_ms_info", "serv='CHAN'"); for (i = 0; i < 256; i++) { for (ci = chanlists[i]; ci; ci = ci->next) { @@ -1012,7 +1012,14 @@ void save_cs_rdb_dbase(void) } /* for (chanlists[i]) */ } /* for (i) */ - rdb_scrub_table("anope_cs_info", "active='0'"); + rdb_clean_table("anope_cs_info"); + rdb_clean_table("anope_cs_access"); + rdb_clean_table("anope_cs_levels"); + rdb_clean_table("anope_cs_akicks"); + rdb_clean_table("anope_cs_badwords"); + rdb_clean_table("anope_cs_ttb"); + rdb_clean_table_where("anope_ms_info", "serv='CHAN'"); + rdb_close(); #endif } @@ -1712,12 +1719,6 @@ void cs_remove_nick(const NickCore * nc) ci->founder = nc2; ci->successor = NULL; nc2->channelcount++; -#ifdef USE_RDB - if (rdb_open()) { - rdb_cs_set_founder(ci->name, nc2->display); - rdb_close(); - } -#endif } } else { alog("%s: Deleting channel %s owned by deleted nick %s", s_ChanServ, ci->name, nc->display); @@ -1762,12 +1763,6 @@ void cs_remove_nick(const NickCore * nc) } } } -#ifdef USE_RDB - if (rdb_open()) { - rdb_cs_deluser(nc->display); - rdb_close(); - } -#endif } /*************************************************************************/ @@ -1942,18 +1937,7 @@ int delchan(ChannelInfo * ci) if (debug >= 2) { alog("debug: delchan() Bot has been removed moving on"); } -#ifdef USE_RDB - if (debug >= 2) { - alog("debug: delchan() rdb updating"); - } - if (rdb_open()) { - rdb_cs_delchan(ci); - rdb_close(); - } - if (debug >= 2) { - alog("debug: delchan() rdb done"); - } -#endif + if (debug >= 2) { alog("debug: delchan() founder cleanup"); } |
