diff options
| author | 2020-10-31 23:21:15 +0000 | |
|---|---|---|
| committer | 2020-10-31 23:21:15 +0000 | |
| commit | 1b181b42b82213c884e8aac3a620252102992439 (patch) | |
| tree | e1eefa83c074695016e94cb97bb34a24909ebb3d /src/modules/m_repeat.cpp | |
| parent | Add stdalgo::iterator_range and switch config tag reading to use it. (diff) | |
| download | inspircd++-1b181b42b82213c884e8aac3a620252102992439.tar.gz inspircd++-1b181b42b82213c884e8aac3a620252102992439.tar.bz2 inspircd++-1b181b42b82213c884e8aac3a620252102992439.zip | |
Convert ConfigTag from reference<> to std::shared_ptr<>.
Diffstat (limited to 'src/modules/m_repeat.cpp')
| -rw-r--r-- | src/modules/m_repeat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp index 3218888a9..3bb1e9bff 100644 --- a/src/modules/m_repeat.cpp +++ b/src/modules/m_repeat.cpp @@ -236,7 +236,7 @@ class RepeatMode : public ParamMode<RepeatMode, SimpleExtItem<ChannelSettings> > void ReadConfig() { - ConfigTag* conf = ServerInstance->Config->ConfValue("repeat"); + auto conf = ServerInstance->Config->ConfValue("repeat"); ms.MaxLines = conf->getUInt("maxlines", 20); ms.MaxBacklog = conf->getUInt("maxbacklog", 20); ms.MaxSecs = conf->getDuration("maxtime", 0); |
