summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-11-24 22:36:53 +0000
committerSadie Powell <sadie@witchery.services>2024-11-24 22:36:53 +0000
commit70227dc8823c0f9669e35dbf63593faaeef5410d (patch)
treea3eaca7867a9404101771d59e01a35dee3ca0a10
parent6178ea644aa8ffe8859a5d44b29b8bdc91bd3035 (diff)
Take a constant pointer in GetModule.
-rw-r--r--include/config.h2
-rw-r--r--src/config.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h
index 0a0a3103d..c0faf79ee 100644
--- a/include/config.h
+++ b/include/config.h
@@ -126,7 +126,7 @@ namespace Configuration
void LoadConf(File &file);
void Post(Conf *old);
- Block *GetModule(Module *);
+ Block *GetModule(const Module *);
Block *GetModule(const Anope::string &name);
BotInfo *GetClient(const Anope::string &name);
diff --git a/src/config.cpp b/src/config.cpp
index 890cf57fe..69d36348d 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -620,7 +620,7 @@ void Conf::Post(Conf *old)
}
}
-Block *Conf::GetModule(Module *m)
+Block *Conf::GetModule(const Module *m)
{
if (!m)
return NULL;