summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:44:15 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:44:15 +0000
commit5abd3b1cc5fba26486d71c6a415fae797388ddf3 (patch)
treec863c777b37939059ce7b98f37aba82df7299f30 /include
parentfbe8169b82cb071dd57b66941093df654aa7b22c (diff)
Add "created" parameter to OnUserJoin, to avoid explicit checks for +P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11597 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/channels.h2
-rw-r--r--include/modules.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/channels.h b/include/channels.h
index 1b6e9a875..220c56cf9 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -111,7 +111,7 @@ class CoreExport Channel : public Extensible
/** Connect a Channel to a User
*/
- static Channel* ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const std::string &privs, bool bursting);
+ static Channel* ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const std::string &privs, bool bursting, bool created);
/** Set default modes for the channel on creation
*/
diff --git a/include/modules.h b/include/modules.h
index 21e476089..47f495373 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -501,8 +501,9 @@ class CoreExport Module : public Extensible
* of the channel (useful for modules such as auditorium)
* @param sync This is set to true if the JOIN is the result of a network sync and the remote user is being introduced
* to a channel due to the network sync.
+ * @param created This is true if the join created the channel
*/
- virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent);
+ virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent, bool created);
/** Called after a user joins a channel
* Identical to OnUserJoin, but called immediately afterwards, when any linking module has