diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-15 02:23:41 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-15 02:23:41 +0000 |
commit | 99559d1acd2e082b4f7929e9630e5764091c99cb (patch) | |
tree | 5c9cb98ada2360a0a97d7cc7dfc22480b43967bb /src/init.c | |
parent | 12a4aa4dba5d65b301dcf7292a2789aa5176fe7b (diff) |
Fixed loading botserv bots time created & number of channels from the database, and only readd the core bots if none exist, not just if nickserv doesn't exist
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2892 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/init.c b/src/init.c index e527f32c5..dfbdfbd80 100644 --- a/src/init.c +++ b/src/init.c @@ -470,13 +470,7 @@ int init_secondary(int ac, char **av) /* this is only used on the first run of Anope. */ - /* Config.s_NickServ will always be an existing bot (if there - * are databases) because Anope now tracks what nick - * each core bot is on, and changes them if needed - * when loading the databases - */ - BotInfo *bi = findbot(Config.s_NickServ); - if (!bi) + if (!nbots) { if (Config.s_OperServ) new BotInfo(Config.s_OperServ, Config.ServiceUser, Config.ServiceHost, Config.desc_OperServ); |