mirror of
https://github.com/anope/anope.git
synced 2026-07-07 07:53:12 +02:00
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
This commit is contained in:
+1
-7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user