summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-14 12:16:31 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-14 12:16:31 +0100
commit8bdc2313a66bc200e7067e01159367f48571fef9 (patch)
tree0a0743fa2ab776987772f5b7f1f5cfd401a0b1b5 /include
parent74ccc28da30896ee715504d53822f7b3ce6ec86f (diff)
Move GetAllPrefixChars() from Channel to Membership
Diffstat (limited to 'include')
-rw-r--r--include/channels.h8
-rw-r--r--include/membership.h7
2 files changed, 7 insertions, 8 deletions
diff --git a/include/channels.h b/include/channels.h
index daf8be9e2..9b018b23e 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -304,14 +304,6 @@ class CoreExport Channel : public Extensible, public InviteBase<Channel>
*/
void UserList(User *user);
- /** 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. 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(User* user);
-
/** Get the value of a users prefix on this channel.
* @param user The user to look up
* @return The module or core-defined value of the users prefix.
diff --git a/include/membership.h b/include/membership.h
index c6b0bf14a..44eaf1eb6 100644
--- a/include/membership.h
+++ b/include/membership.h
@@ -52,6 +52,13 @@ class CoreExport Membership : public Extensible, public intrusive_list_node<Memb
* 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>