]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanhistory.cpp
Make irc::sockets::* parameters consistent, add irc::sockets::mask
[user/henk/code/inspircd.git] / src / modules / m_chanhistory.cpp
index 0e5bfd0825169b8c95abb6ab4e3edfebca562cb6..d987fee1e5e4bbf22373c655587b01c55d654203 100644 (file)
@@ -44,7 +44,7 @@ class HistoryMode : public ModeHandler
                        if (colon == std::string::npos)
                                return MODEACTION_DENY;
                        int len = atoi(parameter.substr(0, colon).c_str());
-                       int time = atoi(parameter.substr(colon+1).c_str());
+                       int time = ServerInstance->Duration(parameter.substr(colon+1));
                        if (len <= 0 || time < 0 || len > 50)
                                return MODEACTION_DENY;
                        ext.set(channel, new HistoryList(len, time));