]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delaymsg.cpp
Fix some regressions in sending tags between servers.
[user/henk/code/inspircd.git] / src / modules / m_delaymsg.cpp
index 5805d4bad0c00a7cb9d01b7fe259b217a1c673fb..04d4119c7e4592d134f0b41606f7ce37dcd582d0 100644 (file)
@@ -29,6 +29,7 @@ class DelayMsgMode : public ParamMode<DelayMsgMode, LocalIntExt>
                , jointime("delaymsg", ExtensionItem::EXT_MEMBERSHIP, Parent)
        {
                ranktoset = ranktounset = OP_VALUE;
+               syntax = "<seconds>";
        }
 
        bool ResolveModeConflict(std::string& their_param, const std::string& our_param, Channel*) CXX11_OVERRIDE
@@ -47,7 +48,7 @@ class DelayMsgMode : public ParamMode<DelayMsgMode, LocalIntExt>
 
 class ModuleDelayMsg
        : public Module
-       , public CTCTags::EventListener 
+       , public CTCTags::EventListener
 {
  private:
        DelayMsgMode djm;
@@ -91,7 +92,7 @@ void DelayMsgMode::OnUnset(User* source, Channel* chan)
 
 Version ModuleDelayMsg::GetVersion()
 {
-       return Version("Provides channelmode +d <int>, to deny messages to a channel until <int> seconds.", VF_VENDOR);
+       return Version("Provides channel mode +d <int>, to deny messages to a channel until <int> seconds have passed", VF_VENDOR);
 }
 
 void ModuleDelayMsg::OnUserJoin(Membership* memb, bool sync, bool created, CUList&)
@@ -137,7 +138,7 @@ ModResult ModuleDelayMsg::HandleMessage(User* user, const MessageTarget& target,
        {
                if (channel->GetPrefixValue(user) < VOICE_VALUE)
                {
-                       user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel->name, InspIRCd::Format("You must wait %d seconds after joining to send to channel (+d)", len));
+                       user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel->name, InspIRCd::Format("You must wait %d seconds after joining to send to the channel (+d is set)", len));
                        return MOD_RES_DENY;
                }
        }