]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
Remove calls to strdup() in core, it is not better than std::string
[user/henk/code/inspircd.git] / include / configreader.h
index b5e6a887b4925e6709db13dfc2144192eb712f0a..c8cd13081d82c553a4c1b51f98ae7639bdfcbcf9 100644 (file)
@@ -42,23 +42,23 @@ typedef std::map<irc::string,std::string> opertype_t;
 
 /** Holds an oper class.
  */
-struct operclass_data : public Extensible
+struct operclass_data : public classbase
 {
        /** Command list for the class
         */
-       char *commandlist;
+       std::string commandlist;
 
        /** Channel mode list for the class
         */
-       char *cmodelist;
+       std::string cmodelist;
 
        /** User mode list for the class
         */
-       char *umodelist;
+       std::string umodelist;
 
        /** Priviledges given by this class
         */
-       char *privs;
+       std::string privs;
 };
 
 /** A Set of oper classes
@@ -68,7 +68,7 @@ typedef std::map<irc::string, operclass_data> operclass_t;
 /** Defines the server's length limits on various length-limited
  * items such as topics, nicknames, channel names etc.
  */
-class ServerLimits : public Extensible
+class ServerLimits
 {
  public:
        /** Maximum nickname length */
@@ -119,7 +119,7 @@ class ServerLimits : public Extensible
  * and storage of the configuration data needed to run the ircd, such as
  * the servername, connect classes, /ADMIN data, MOTDs and filenames etc.
  */
-class CoreExport ServerConfig : public Extensible
+class CoreExport ServerConfig : public classbase
 {
   private:
        /** Creator/owner pointer