summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-16 02:37:57 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-18 18:38:30 +0100
commit020c1d6ea658956e7cb2462a748790a4f4e30787 (patch)
treef06c01791ddf214d27a2b682da5ac41ed99d70c3 /include
parentee7ac5aaede95eb82ecc948d0e52ad01ddeaa6c9 (diff)
Add a constructor to OperInfo and use it to set the type name.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 001d4a92a..9fcb9c6a3 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -184,6 +184,11 @@ class CoreExport OperInfo : public refcountbase
/** Name of the oper type; i.e. the one shown in WHOIS */
std::string name;
+ /** Creates a new OperInfo with the specified oper type name.
+ * @param Name The name of the oper type.
+ */
+ OperInfo(const std::string& Name);
+
/** Get a configuration item, searching in the oper, type, and class blocks (in that order) */
std::string getConfig(const std::string& key);
void init();