summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-19 06:17:55 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-19 06:17:55 +0000
commit3860856dd284353966fe682b2256a6dd6b5f48fe (patch)
treee28535836fad521e2df662e2562da8e5b4319ce4 /src/init.c
parent2b4d834f8c5716a7b9309ad2e4eb5d00b48742e7 (diff)
Moved opertype access checking to NickAlises constructor, cleans up some code and fixes bug #1163
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2968 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/init.c b/src/init.c
index d71366968..cafb30ada 100644
--- a/src/init.c
+++ b/src/init.c
@@ -437,39 +437,6 @@ int init_secondary(int ac, char **av)
FOREACH_RESULT(I_OnLoadDatabase, OnLoadDatabase());
Alog() << "Databases loaded";
- // XXX: this is duplicated in type loading.
- for (std::list<std::pair<std::string, std::string> >::iterator it = Config.Opers.begin(); it != Config.Opers.end(); it++)
- {
- std::string nick = it->first;
- std::string type = it->second;
-
- NickAlias *na = findnick(nick);
- if (!na)
- {
- // Nonexistant nick
- Alog() << "Oper nick '" << nick << "' is not registered";
- continue;
- }
-
- if (!na->nc)
- {
- // Nick with no core (wtf?)
- abort();
- }
-
- for (std::list<OperType *>::iterator tit = Config.MyOperTypes.begin(); tit != Config.MyOperTypes.end(); tit++)
- {
- OperType *ot = *tit;
- if (ot->GetName() == type)
- {
- Alog() << "Tied oper " << na->nc->display << " to type " << type;
- na->nc->ot = ot;
- }
- }
- }
- // END DUPLICATION
-
-
/* this is only used on the first run of Anope. */
if (!nbots)
{