diff options
author | Adam <Adam@anope.org> | 2013-06-01 14:55:45 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-06-01 14:55:45 -0400 |
commit | b56e71ab14b020a3a01f1fbd183382083156aaf4 (patch) | |
tree | 0a08e0f848697c9c8c708e2e2156ce6256481fe2 /include/channels.h | |
parent | 6f45d7249785b056ed78916d33ec45045a43ed92 (diff) |
Move CheckKick event to Channel and make os_forbid use it instead of kicking users in the join event, which does bad things
Diffstat (limited to 'include/channels.h')
-rw-r--r-- | include/channels.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/channels.h b/include/channels.h index 25bd95097..15b66e928 100644 --- a/include/channels.h +++ b/include/channels.h @@ -278,6 +278,12 @@ class CoreExport Channel : public Base, public Extensible */ bool Unban(User *u, bool full = false); + /** Check whether a user is permitted to be on this channel + * @param u The user + * @return true if they are allowed, false if they aren't and were kicked + */ + bool CheckKick(User *user); + /** Finds a channel * @param name The channel to find * @return The channel, if found |