summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules.h3
-rw-r--r--src/modules.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index f4a9b0fb6..f220e1692 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -480,6 +480,9 @@ class CoreExport Module : public Extensible
*/
InspIRCd* ServerInstance;
public:
+ /** File that this module was loaded from
+ */
+ std::string ModuleSourceFile;
/** Default constructor.
* Creates a module class.
diff --git a/src/modules.cpp b/src/modules.cpp
index 701b76ae2..5b2cc8ee4 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -431,6 +431,7 @@ bool ModuleManager::Load(const char* filename)
if (newmod)
{
+ newmod->ModuleSourceFile = filename_str;
Version v = newmod->GetVersion();
if (v.API != API_VERSION)