summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/init.c b/src/init.c
index 8ef0a48df..8931fd6f4 100644
--- a/src/init.c
+++ b/src/init.c
@@ -582,7 +582,12 @@ int init_secondary(int ac, char **av)
/* this is only used on the first run of Anope. */
- BotInfo *bi = findbot("NickServ");
+ /* 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(s_NickServ);
if (!bi)
{
if (s_OperServ)