mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Mark Membership::GetRank() as constant.
This commit is contained in:
parent
ecc2ebce61
commit
08b7167d0f
@ -97,7 +97,7 @@ public:
|
||||
* member has. See the PrefixMode class description for more info.
|
||||
* @return The rank of the member
|
||||
*/
|
||||
ModeHandler::Rank GetRank() { return modes.empty() ? 0 : (*modes.begin())->GetPrefixRank(); }
|
||||
ModeHandler::Rank GetRank() const { return modes.empty() ? 0 : (*modes.begin())->GetPrefixRank(); }
|
||||
|
||||
/** Add a prefix character to a user.
|
||||
* Only the core should call this method, usually from
|
||||
|
Loading…
x
Reference in New Issue
Block a user