diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-02 23:50:53 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-02 23:50:53 +0000 |
| commit | ec9dafb778cae465379f64bf0a0f997dbb4603ab (patch) | |
| tree | 2a908a3c4bcd4f1fa7e137766ff1349909b13f1c /src/chanserv.c | |
| parent | 232d1b5e88c62ef3e2dae4a03353da817a3b89dc (diff) | |
Rip out SQL. It's utterly useless in current implementation.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1502 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
| -rw-r--r-- | src/chanserv.c | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index 598982cd9..c20c39265 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -756,100 +756,6 @@ void save_cs_dbase(void) /*************************************************************************/ -void save_cs_rdb_dbase(void) -{ -#ifdef USE_RDB - int i; - ChannelInfo *ci; - - if (!rdb_open()) - return; - - if (rdb_tag_table("anope_cs_info") == 0) { - alog("Unable to tag table 'anope_cs_info' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_cs_access") == 0) { - alog("Unable to tag table 'anope_cs_access' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_cs_levels") == 0) { - alog("Unable to tag table 'anope_cs_levels' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_cs_akicks") == 0) { - alog("Unable to tag table 'anope_cs_akicks' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_cs_badwords") == 0) { - alog("Unable to tag table 'anope_cs_badwords' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_cs_ttb") == 0) { - alog("Unable to tag table 'anope_cs_ttb' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table_where("anope_ms_info", "serv='CHAN'") == 0) { - alog("Unable to tag table 'anope_ms_info' - ChanServ RDB save failed."); - rdb_close(); - return; - } - - for (i = 0; i < 256; i++) { - for (ci = chanlists[i]; ci; ci = ci->next) { - if (rdb_save_cs_info(ci) == 0) { - alog("Unable to save ChanInfo for %s - ChanServ RDB save failed.", ci->name); - rdb_close(); - return; - } - } /* for (chanlists[i]) */ - } /* for (i) */ - - if (rdb_clean_table("anope_cs_info") == 0) { - alog("Unable to clean table 'anope_cs_info' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_cs_access") == 0) { - alog("Unable to clean table 'anope_cs_access' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_cs_levels") == 0) { - alog("Unable to clean table 'anope_cs_levels' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_cs_akicks") == 0) { - alog("Unable to clean table 'anope_cs_akicks' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_cs_badwords") == 0) { - alog("Unable to clean table 'anope_cs_badwords' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_cs_ttb") == 0) { - alog("Unable to clean table 'anope_cs_ttb' - ChanServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table_where("anope_ms_info", "serv='CHAN'") == 0) - alog("Unable to clean table 'anope_ms_info' - ChanServ RDB save failed."); - - rdb_close(); -#endif -} - -/*************************************************************************/ - /* Check the current modes on a channel; if they conflict with a mode lock, * fix them. * |
