]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
Rename quietban to muteban, change character to +b m:, this way it fits with cmode...
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index f8a1d0e9f5ca2d7ea199449b092976e4d889cdb3..0196c6b8f4640b1d70ba8e2c305fd82de0d95da4 100644 (file)
@@ -29,7 +29,7 @@ class DelayJoinMode : public ModeHandler
                {
                        if (IS_LOCAL(source) && (channel->GetStatus(source) < STATUS_OP))
                        {
-                               source->WriteNumeric(482, "%s %s :Only channel operators may %sset channel mode +D", source->nick.c_str(), channel->name.c_str(), adding ? "" : "un");
+                               source->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :Only channel operators may %sset channel mode +D", source->nick.c_str(), channel->name.c_str(), adding ? "" : "un");
                                return MODEACTION_DENY;
                        }
                        else
@@ -117,7 +117,7 @@ class ModuleDelayJoin : public Module
                }
        }
 
-       void OnUserPart(User* user, Channel* channel, const std::string &partmessage, bool &silent)
+       void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent)
        {
                if (channel->IsModeSet('D'))
                {