summaryrefslogtreecommitdiff
path: root/include/membership.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-30 16:19:31 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-30 16:19:31 +0200
commite0931343939bc15ea9aaa884eab61d80827074c6 (patch)
tree7842c30db2823be50e739412e097fa899bb5ea6c /include/membership.h
parentcf6a8ee7e3fb11ea19d627216f53118c563a0a71 (diff)
Change Membership:hasMode() to accept a PrefixMode
Diffstat (limited to 'include/membership.h')
-rw-r--r--include/membership.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/membership.h b/include/membership.h
index 05d6b3796..92e0f790b 100644
--- a/include/membership.h
+++ b/include/membership.h
@@ -70,13 +70,13 @@ class CoreExport Membership : public Extensible, public insp::intrusive_list_nod
*/
Membership(User* u, Channel* c) : user(u), chan(c) {}
- /** Returns true if this member has a given prefix mode set
- * @param m The prefix mode letter to check
+ /** Check if this member has a given prefix mode set
+ * @param pm Prefix mode to check
* @return True if the member has the prefix mode set, false otherwise
*/
- inline bool hasMode(char m) const
+ bool HasMode(const PrefixMode* pm) const
{
- return modes.find(m) != std::string::npos;
+ return (modes.find(pm->GetModeChar()) != std::string::npos);
}
/** Returns the rank of this member.