summaryrefslogtreecommitdiff
path: root/src/chanserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chanserv.c')
-rw-r--r--src/chanserv.c94
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.
*