summaryrefslogtreecommitdiff
path: root/include/channels.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-28 17:27:40 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-28 17:27:40 +0100
commite17fcc226b04ea62c6ab4444bc1175a93f5fce57 (patch)
tree7c772c3e941be1d9aee6e154960f537d80dcb703 /include/channels.h
parent419537e7453928af2fde6648e87085a27e443486 (diff)
Return true from Channel::PartUser() if the user was on the channel
Diffstat (limited to 'include/channels.h')
-rw-r--r--include/channels.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/channels.h b/include/channels.h
index be84ac800..0cf477f22 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -205,8 +205,9 @@ class CoreExport Channel : public Extensible
* If the reason field is NULL, no reason will be sent.
* @param user The user who is parting (must be on this channel)
* @param reason The part reason
+ * @return True if the user was on the channel and left, false if they weren't and nothing happened
*/
- void PartUser(User *user, std::string &reason);
+ bool PartUser(User* user, std::string& reason);
/** Join a local user to a channel, with or without permission checks. May be a channel that doesn't exist yet.
* @param user The user to join to the channel.