]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Add chanrec::IsBanned() so that we dont have to keep walking the banlist in various...
[user/henk/code/inspircd.git] / include / channels.h
index 14e06d40fc5b71183b8ad2426a712a8356eb4d12..d0d2215506cc3421a21bd79fcdef27a8a623bbd8 100644 (file)
@@ -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 */ }