]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/channels.cpp
Add "created" parameter to OnUserJoin, to avoid explicit checks for +P
[user/henk/code/inspircd.git] / src / channels.cpp
index 0ff1298c118729fd23187ea09a6ba7336d6efce5..6e0f4c68669e0c967889417508223b6be0f38a03 100644 (file)
@@ -405,10 +405,10 @@ Channel* Channel::JoinUser(InspIRCd* Instance, User *user, const char* cn, bool
                Ptr->SetDefaultModes();
        }
 
-       return Channel::ForceChan(Instance, Ptr, user, privs, bursting);
+       return Channel::ForceChan(Instance, Ptr, user, privs, bursting, created_by_local);
 }
 
-Channel* Channel::ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const std::string &privs, bool bursting)
+Channel* Channel::ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const std::string &privs, bool bursting, bool created)
 {
        std::string nick = user->nick;
        bool silent = false;
@@ -448,7 +448,7 @@ Channel* Channel::ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const
                }
        }
 
-       FOREACH_MOD_I(Instance,I_OnUserJoin,OnUserJoin(user, Ptr, bursting, silent));
+       FOREACH_MOD_I(Instance,I_OnUserJoin,OnUserJoin(user, Ptr, bursting, silent, created));
 
        if (!silent)
                Ptr->WriteChannel(user,"JOIN :%s",Ptr->name.c_str());