]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
Argh, i give up
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index 435148c61490d90ebaa09900bd1b2d44aea613d6..9d9a4007ec0b698d1054ac381e89611ea4f99e97 100644 (file)
@@ -118,7 +118,7 @@ class ModuleDelayJoin : public Module
                return 0;
        }
 
-       virtual void OnUserJoin(User* user, Channel* channel, bool &silent)
+       virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
        {
                if (channel->IsModeSet('D'))
                {
@@ -191,6 +191,10 @@ class ModuleDelayJoin : public Module
                /* Display the join to everyone else (the user who joined got it earlier) */
                this->WriteCommonFrom(user, channel, "JOIN %s", channel->name);
 
+               std::string n = this->ServerInstance->Modes->ModeString(user, channel);
+               if (n.length() > 0)
+                       this->WriteCommonFrom(user, channel, "MODE %s +%s", channel->name, n.c_str());
+
                /* Shrink off the neccessary metadata for a specific channel */
                user->Shrink(std::string("delayjoin_")+channel->name);