diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-07-18 19:32:24 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-07-18 19:32:24 +0000 |
commit | 906580a463acbbce328183979f92eb7088b7b20a (patch) | |
tree | 3edb58370d2dcb878d404764b99c865d5dccb4bf /src | |
parent | e0828bf69bdc9f160d881fc2de6dd601dd48994c (diff) |
Fixes a crash when renaming NickServ
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2384 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/init.c | 7 |
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) |