]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nopartmsg.cpp
Fix crash caused by me being retarded.
[user/henk/code/inspircd.git] / src / modules / m_nopartmsg.cpp
index 648626a2392929ca808814df0305e834e90f71a2..fab20a084913730dcc49d4635a0615c27766932c 100644 (file)
@@ -31,19 +31,17 @@ class ModulePartMsgBan : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1,2,0,0,VF_VENDOR,API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
 
 
-    virtual void OnUserPart(User* user, Channel* channel, const std::string &partmessage, bool &silent)
+       virtual void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent)
        {
                if (!IS_LOCAL(user))
                        return;
 
-#if 0
                if (channel->IsExtBanned(user, 'p'))
                        partmessage = "";
-#endif
 
                return;
        }