]> 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 20255abf63f405360a4595761b39c56001379a61..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
@@ -70,7 +70,7 @@ class ModuleDelayJoin : public Module
                Implementation eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnNamesListItem, I_OnText };
                ServerInstance->Modules->Attach(eventlist, this, 6);
        }
-       
+
        virtual ~ModuleDelayJoin()
        {
                ServerInstance->Modes->DelMode(djm);
@@ -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'))
                {
@@ -183,7 +183,7 @@ class ModuleDelayJoin : public Module
                user->Shrink("delayjoin_"+channel->name);
 
                /* Check if the user is left on any other +D channels, if so don't take away the
-                * metadata that says theyre on one or more channels 
+                * metadata that says theyre on one or more channels
                 */
                for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++)
                        if (f->first->IsModeSet('D'))