]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/membership.h
Create the core_xline module
[user/henk/code/inspircd.git] / include / membership.h
index d98b54731884cd31d12f641e9ddd42c6a6be0a5f..44eaf1eb6c2d39f404b8c144b6b047ec40c7c722 100644 (file)
@@ -43,6 +43,22 @@ class CoreExport Membership : public Extensible, public intrusive_list_node<Memb
         * @return True if a change was made
         */
        bool SetPrefix(PrefixMode* mh, bool adding);
+
+       /** Get the highest prefix this user has on the channel
+        * @return A character containing the highest prefix.
+        * If the user has no prefix, 0 is returned. If the user has multiple prefixes,
+        * the highest is returned. If you do not recognise the prefix character you
+        * can get, you can deal with it in a 'proportional' manner compared to known
+        * prefixes, using GetPrefixValue().
+        */
+       char GetPrefixChar() const;
+
+       /** Return all prefix chars this member has.
+        * @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() const;
 };
 
 template <typename T>