diff options
Diffstat (limited to 'src/operserv.c')
-rw-r--r-- | src/operserv.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/operserv.c b/src/operserv.c index 50e3e078c..c39790418 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -497,71 +497,6 @@ void save_os_dbase(void) /*************************************************************************/ -void save_os_rdb_dbase(void) -{ -#ifdef USE_RDB - if (!rdb_open()) - return; - - if (rdb_tag_table("anope_os_akills") == 0) { - alog("Unable to tag table 'anope_os_akills' - OperServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_os_sglines") == 0) { - alog("Unable to tag table 'anope_os_sglines' - OperServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_os_sqlines") == 0) { - alog("Unable to tag table 'anope_os_sqlines' - OperServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_tag_table("anope_os_szlines") == 0) { - alog("Unable to tag table 'anope_os_szlines' - OperServ RDB save failed."); - rdb_close(); - return; - } - /* We empty anope_os_core as required */ - if (rdb_empty_table("anope_os_core") == 0) { - alog("Unable to empty table 'anope_os_core' - OperServ RDB save failed"); - rdb_close(); - return; - } - - if (rdb_save_os_db - (maxusercnt, maxusertime, &akills, &sglines, &sqlines, - &szlines) == 0) { - alog("Unable to save OperServ data - OperServ RDB save failed"); - rdb_close(); - return; - } - - if (rdb_clean_table("anope_os_akills") == 0) { - alog("Unable to clean table 'anope_os_akills' - OperServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_os_sglines") == 0) { - alog("Unable to clean table 'anope_os_sglines' - OperServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_os_sqlines") == 0) { - alog("Unable to clean table 'anope_os_sqlines' - OperServ RDB save failed."); - rdb_close(); - return; - } - if (rdb_clean_table("anope_os_szlines") == 0) - alog("Unable to clean table 'anope_os_szlines' - OperServ RDB save failed."); - - rdb_close(); -#endif -} - -/*************************************************************************/ - /* Removes the nick structure from OperServ lists. */ void os_remove_nick(NickCore * nc) |