]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanhistory.cpp
Merge pull request #495 from SaberUK/master+fix-libcpp
[user/henk/code/inspircd.git] / src / modules / m_chanhistory.cpp
index e48e67fe5557ffb601425de6dde5ceba787e3b7b..036fc1df6c4ba043a575dfa6297596c90048b772 100644 (file)
@@ -70,7 +70,7 @@ class HistoryMode : public ModeHandler
                                return MODEACTION_DENY;
 
                        unsigned int len = ConvToInt(parameter.substr(0, colon));
-                       int time = ServerInstance->Duration(duration);
+                       int time = InspIRCd::Duration(duration);
                        if (len == 0 || time < 0)
                                return MODEACTION_DENY;
                        if (len > maxlines && IS_LOCAL(source))