mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:46:36 +02:00
Got rid of some now unnecessary code in config.c and moved Config.Opers.clear() to InitOpers where it belongs
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2689 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+2
-11
@@ -461,6 +461,8 @@ static bool InitOpers(ServerConfig *, const char *, bool)
|
||||
for (i = 0; i < 1024; ++i)
|
||||
for (nc = nclists[i]; nc; nc = nc->next)
|
||||
nc->ot = NULL;
|
||||
|
||||
Config.Opers.clear();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1528,17 +1530,6 @@ int read_config(int reload)
|
||||
int retval = 1;
|
||||
char *s;
|
||||
int defconCount = 0;
|
||||
std::list<std::pair<std::string, std::string> >::iterator it;
|
||||
|
||||
/* Clear current opers for reload */
|
||||
for (it = Config.Opers.begin(); it != Config.Opers.end(); ++it)
|
||||
{
|
||||
std::string nick = it->first;
|
||||
NickCore *nc = findcore(nick.c_str());
|
||||
if (nc)
|
||||
nc->ot = NULL;
|
||||
}
|
||||
Config.Opers.clear();
|
||||
|
||||
retval = Config.Read(reload ? false : true);
|
||||
if (!retval) return 0; // Temporary until most of the below is modified to use the new parser -- CyberBotX
|
||||
|
||||
Reference in New Issue
Block a user