X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanhistory.cpp;h=540fa29087cbb548307826967d6429e5ae7c1ee7;hb=da53c17315d3eb0d0177608d306d208bdf05786b;hp=47e27172c4bb1c69a72feef35dacb72c7e84352c;hpb=0f7cfd46ef2d277f5f82e34a2852c75212d75261;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 47e27172c..540fa2908 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -72,8 +72,8 @@ class HistoryMode : public ParamMode > } unsigned int len = ConvToNum(parameter.substr(0, colon)); - unsigned int time = InspIRCd::Duration(duration); - if (len == 0 || (len > maxlines && IS_LOCAL(source))) + unsigned long time; + if (!InspIRCd::Duration(duration, time) || len == 0 || (len > maxlines && IS_LOCAL(source))) { source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter)); return MODEACTION_DENY; @@ -207,7 +207,7 @@ class ModuleChanHistory Version GetVersion() CXX11_OVERRIDE { - return Version("Provides channel history replayed on join", VF_VENDOR); + return Version("Provides channel mode +H, allows for the channel message history to be replayed on join", VF_VENDOR); } };