summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 13:49:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 13:49:48 +0000
commited16793ceec7880f4f9019cbf53f58c0d2bd45ac (patch)
tree2bd57c9686beb2d5cfd270fb8c792d779d432946
parent8cf04b546c3c4da7f47162063eef6b8607a655e5 (diff)
And so does my coding on a saturday afternoon...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5564 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/users.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 09145d361..4100e3452 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -31,15 +31,15 @@ unsigned long uniq_id = 0;
bool InitTypes(ServerConfig* conf, const char* tag)
{
- if (!conf->opertypes.size())
- return true;
-
- conf->GetInstance()->Log(DEBUG,"Currently %d items to clear",conf->opertypes.size());
- for (opertype_t::iterator n = conf->opertypes.begin(); n != conf->opertypes.end(); n++)
+ if (conf->opertypes.size())
{
- conf->GetInstance()->Log(DEBUG,"Clear item");
- if (n->second)
- delete[] n->second;
+ conf->GetInstance()->Log(DEBUG,"Currently %d items to clear",conf->opertypes.size());
+ for (opertype_t::iterator n = conf->opertypes.begin(); n != conf->opertypes.end(); n++)
+ {
+ conf->GetInstance()->Log(DEBUG,"Clear item");
+ if (n->second)
+ delete[] n->second;
+ }
}
conf->opertypes.clear();
@@ -48,13 +48,13 @@ bool InitTypes(ServerConfig* conf, const char* tag)
bool InitClasses(ServerConfig* conf, const char* tag)
{
- if (!conf->operclass.size())
- return true;
-
- for (operclass_t::iterator n = conf->operclass.begin(); n != conf->operclass.end(); n++)
+ if (conf->operclass.size())
{
- if (n->second)
- delete[] n->second;
+ for (operclass_t::iterator n = conf->operclass.begin(); n != conf->operclass.end(); n++)
+ {
+ if (n->second)
+ delete[] n->second;
+ }
}
conf->operclass.clear();