mirror of
https://github.com/anope/anope.git
synced 2026-07-03 12:03:14 +02:00
Take a constant pointer in GetModule.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -620,7 +620,7 @@ void Conf::Post(Conf *old)
|
||||
}
|
||||
}
|
||||
|
||||
Block *Conf::GetModule(Module *m)
|
||||
Block *Conf::GetModule(const Module *m)
|
||||
{
|
||||
if (!m)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user