X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanhistory.cpp;h=d987fee1e5e4bbf22373c655587b01c55d654203;hb=b43fc66c17c2bef6dca66a966676b8128d5774ee;hp=0e5bfd0825169b8c95abb6ab4e3edfebca562cb6;hpb=a7ebc19c59ba835744297dfba1566773ac557e0c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 0e5bfd082..d987fee1e 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -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));