summaryrefslogtreecommitdiff
path: root/include/membership.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-14 12:15:00 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-14 12:15:00 +0100
commit74ccc28da30896ee715504d53822f7b3ce6ec86f (patch)
treefaa72eeee26610355d23b71c27a2b1670629836e /include/membership.h
parent51b5f06c48b98a256eb56ea5f7e4d5d170555e84 (diff)
Move GetPrefixChar() from Channel to Membership
Diffstat (limited to 'include/membership.h')
-rw-r--r--include/membership.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/membership.h b/include/membership.h
index d98b54731..c6b0bf14a 100644
--- a/include/membership.h
+++ b/include/membership.h
@@ -43,6 +43,15 @@ 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;
};
template <typename T>