]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
Fix for bug #541: /taxonomy reporting metadata for incorrect user. Can someone please...
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index 20255abf63f405360a4595761b39c56001379a61..6b6f0c5a158ad9751bb20ed38b21d0d5ac7e5705 100644 (file)
@@ -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'))