summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-10 17:45:41 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-10 17:45:41 +0200
commit106c0889b392a86bacd1ac0756f0087ce184f685 (patch)
treecaf0008687ef65d7250cec1eb36e9bfe256afbd7 /include
parentad6a02809585ac1ad805e66b8aa0113815d9a957 (diff)
Return the newly created Membership object from Channel::ForceJoin()
Diffstat (limited to 'include')
-rw-r--r--include/channels.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/channels.h b/include/channels.h
index cf7285210..e3b38a2db 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -218,8 +218,9 @@ class CoreExport Channel : public Extensible, public InviteBase<Channel>
* @param privs Priviliges (prefix mode letters) to give to this user, may be NULL
* @param bursting True if this join is the result of a netburst (passed to modules in the OnUserJoin hook)
* @param created_by_local True if this channel was just created by a local user (passed to modules in the OnUserJoin hook)
+ * @return A newly created Membership object, or NULL if the user was already inside the channel or if the user is a server user
*/
- void ForceJoin(User* user, const std::string* privs = NULL, bool bursting = false, bool created_by_local = false);
+ Membership* ForceJoin(User* user, const std::string* privs = NULL, bool bursting = false, bool created_by_local = false);
/** Write to a channel, from a user, using va_args for text
* @param user User whos details to prefix the line with