]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
This should fix the empty iterator crash with gcc3.3 - thanks yet again to peaveydk...
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 8 Nov 2006 04:02:05 +0000 (04:02 +0000)
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 8 Nov 2006 04:02:05 +0000 (04:02 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5662 e03df62e-2008-0410-955e-edbf42e46eb7

include/configreader.h

index cce4e0f9dd85999efe3ce04dab95292eb4ca829b..e0bab84bd169e60293d6b68b4406e40ada822820 100644 (file)
@@ -75,7 +75,7 @@ typedef std::map<irc::string,char*> opertype_t;
 
 /** A Set of oper classes
  */
-typedef opertype_t operclass_t;
+typedef std::map<irc::string,char*> operclass_t;
 
 
 /** This class holds the bulk of the runtime configuration for the ircd.
@@ -115,11 +115,20 @@ class ServerConfig : public Extensible
 
        InspIRCd* GetInstance();
          
+
+       /** All oper class definitions from the config file
+        */
+       operclass_t operclass;
+
        /** This holds all the information in the config file,
         * it's indexed by tag name to a vector of key/values.
         */
        ConfigDataHash config_data;
 
+       /* All oper type definitions from the config file
+        */
+       opertype_t opertypes;
+
        /** Holds the server name of the local server
         * as defined by the administrator.
         */
@@ -392,14 +401,6 @@ class ServerConfig : public Extensible
         */
        bool CycleHosts;
 
-       /* All oper type definitions from the config file
-        */
-       opertype_t opertypes;
-
-       /** All oper class definitions from the config file
-        */
-       operclass_t operclass;
-
        /** Construct a new ServerConfig
         */
        ServerConfig(InspIRCd* Instance);