summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 13:48:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 13:48:55 +0000
commit8cf04b546c3c4da7f47162063eef6b8607a655e5 (patch)
treefef8a27f91778d4c26545d77b898aaa79c77237a /src/users.cpp
parentd9b74b49d9ff87f7ce36f2909adb427be4482c68 (diff)
I HATE YOU DEBIAN, YOU AND YOUR WHOLE OPERATION STINK
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5563 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6ee51bb3a..09145d361 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -31,6 +31,9 @@ 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++)
{
@@ -45,6 +48,9 @@ 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 (n->second)