diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-02 14:09:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-02 14:09:45 +0000 |
commit | 29fd51d6f76a639fbd909e7bf7489eb92e9f90db (patch) | |
tree | fbb54bebe1b2edf415cd1c249fb5832ce42bdd68 /include/channels.h | |
parent | 423aa7ba0e7abc2fd6ba3f4a07bf79ec97c9389c (diff) |
Add chanrec::IsBanned() so that we dont have to keep walking the banlist in various modules and using match()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5099 e03df62e-2008-0410-955e-edbf42e46eb7
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 14e06d40f..d0d221550 100644 --- a/include/channels.h +++ b/include/channels.h @@ -527,6 +527,12 @@ class chanrec : public Extensible */ void SetPrefix(userrec* user, char prefix, unsigned int prefix_rank, bool adding); + /** Check if a user is banned on this channel + * @param user A user to check against the banlist + * @returns True if the user given is banned + */ + bool IsBanned(userrec* user); + /** Destructor for chanrec */ virtual ~chanrec() { /* stub */ } |