summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-22 01:05:35 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-22 01:05:35 +0000
commit7d93921aabd9c608821baec8a871aff844dfae49 (patch)
tree5c751133d5825873fc34e2b978fc61047d8a9330 /include/modules.h
parent9f2e1f901930d3646db5f3c21180f02f2f9ce41f (diff)
Describe module purpose in /MODULES output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 982d83754..8ae1aa8e1 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -30,6 +30,7 @@ class XLine;
/** Used to define a set of behavior bits for a module
*/
enum ModuleFlags {
+ VF_NONE = 0, // module is not special at all
VF_STATIC = 1, // module is static, cannot be /unloadmodule'd
VF_VENDOR = 2, // module is a vendor module (came in the original tarball, not 3rd party)
VF_SERVICEPROVIDER = 4, // module provides a service to other modules (can be a dependency)
@@ -257,6 +258,9 @@ do { \
class CoreExport Version : public classbase
{
public:
+ /** Module description
+ */
+ const std::string description;
/** Version information.
*/
const std::string version;
@@ -267,7 +271,7 @@ class CoreExport Version : public classbase
/** Initialize version class
*/
- Version(const std::string &customver, int flags,
+ Version(const std::string &desc, int flags,
int api_ver = API_VERSION, const std::string& src_rev = VERSION " r" REVISION);
};
@@ -448,7 +452,7 @@ class CoreExport Module : public Extensible
* The method should return a Version object with its version information assigned via
* Version::Version
*/
- virtual Version GetVersion();
+ virtual Version GetVersion() = 0;
/** Called when a user connects.
* The details of the connecting user are available to you in the parameter User *user