diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-11 20:28:06 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-11 20:28:06 +0000 |
commit | fc78e51452a0244ee672fca91752eb7d982e2541 (patch) | |
tree | 60f6f06b3e3acf0ad3f29a14ae7aef62fb16b1f7 /src/config.c | |
parent | 8fa67528583b83a23030d5d358e070586672cc87 (diff) |
Make stristr() const-safe, replace post-increment on iterators with pre-increment, remove now unused variables, made my_memo_lang() in hs_request.c const-safe.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2320 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/config.c b/src/config.c index cc3dfec17..4766da1e8 100644 --- a/src/config.c +++ b/src/config.c @@ -1614,19 +1614,17 @@ int read_config(int reload) char *s; int defconCount = 0; std::list<std::pair<std::string, std::string> >::iterator it; - NickCore *nc; - std::string nick; /* Clear current opers for reload */ - for (it = svsopers_in_config.begin(); it != svsopers_in_config.end(); it++) + for (it = svsopers_in_config.begin(); it != svsopers_in_config.end(); ++it) { - nick = it->first; - - if ((nc = findcore(nick.c_str()))) + std::string nick = it->first; + NickCore *nc = findcore(nick.c_str()); + if (nc) nc->ot = NULL; } svsopers_in_config.clear(); - + retval = serverConfig.Read(reload ? false : true); if (!retval) return 0; // Temporary until most of the below is modified to use the new parser -- CyberBotX |