]> 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 e69122521cfc2cefed26ff138d891681ee5dae1c..d0d2215506cc3421a21bd79fcdef27a8a623bbd8 100644 (file)
@@ -490,7 +490,9 @@ class chanrec : public Extensible
 
        /** Return all of a users mode prefixes into a char* string.
         * @param user The user to look up
-        * @return A list of all prefix characters. There is no gauranteed order of prefixes.
+        * @return A list of all prefix characters. The prefixes will always
+        * be in rank order, greatest first, as certain IRC clients require
+        * this when multiple prefixes are used names lists.
         */
        const char* GetAllPrefixChars(userrec* user);
 
@@ -525,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 */ }