mirror of
https://github.com/anope/anope.git
synced 2026-07-03 05:13:14 +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:
parent
3422f4a798
commit
dfec5ed8a7
+6
-28
@@ -607,6 +607,11 @@ int init(int ac, char **av)
|
||||
lang_init();
|
||||
if (debug)
|
||||
alog("debug: Loaded languages");
|
||||
|
||||
/* Initialize remote database support */
|
||||
rdb_init();
|
||||
if (debug)
|
||||
alog("debug: Loaded remote databases");
|
||||
|
||||
/* Initialize subservices */
|
||||
ns_init();
|
||||
@@ -617,10 +622,6 @@ int init(int ac, char **av)
|
||||
hostserv_init();
|
||||
helpserv_init();
|
||||
|
||||
#ifdef USE_RDB
|
||||
rdb_init();
|
||||
#endif
|
||||
|
||||
/* Initialize proxy detection */
|
||||
#ifdef USE_THREADS
|
||||
if (ProxyDetect && !proxy_init()) {
|
||||
@@ -643,12 +644,6 @@ int init(int ac, char **av)
|
||||
#endif
|
||||
|
||||
/* Load up databases */
|
||||
#ifdef USE_RDB
|
||||
if (UseRDB)
|
||||
rdb_load_dbases();
|
||||
/* Need a better way to handle this -dane */
|
||||
if (!UseRDB) {
|
||||
#endif
|
||||
if (!skeleton) {
|
||||
load_ns_dbase();
|
||||
if (debug)
|
||||
@@ -682,25 +677,8 @@ int init(int ac, char **av)
|
||||
if (debug)
|
||||
alog("debug: Loaded PreNick database (9/9)");
|
||||
}
|
||||
#ifdef USE_RDB
|
||||
}
|
||||
#endif
|
||||
alog("Databases loaded");
|
||||
|
||||
/* Save the databases back to file/mysql to reflect any changes */
|
||||
#ifdef USE_RDB
|
||||
if (!UseRDB) { /* Only save if we are not using remote databases
|
||||
* to avoid floods. As a side effects our nice
|
||||
* FFF databases won't get overwritten if the
|
||||
* mysql db is broken (empty etc.) */
|
||||
#endif
|
||||
alog("Info: Reflecting database records.");
|
||||
save_databases();
|
||||
#ifdef USE_RDB
|
||||
} else {
|
||||
alog("Info: Not reflecting database records.");
|
||||
}
|
||||
#endif
|
||||
save_databases();
|
||||
/* Make myself known to myself in the serverlist */
|
||||
me_server = new_server(NULL, ServerName, ServerDesc, SERVER_ISME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user