diff options
| author | 2022-03-23 18:38:25 +0000 | |
|---|---|---|
| committer | 2022-03-23 18:59:06 +0000 | |
| commit | 46f4a562c835dd39d2472d4010d8bb20320c861f (patch) | |
| tree | 703ee236165980089c3e31cf1065a3ec8b34cdf3 /src/coremods | |
| parent | Add support for blocking invites to the commonchans module. (diff) | |
Fix using the prefix char instead of the prefix letter in oplevels.
Diffstat (limited to 'src/coremods')
| -rw-r--r-- | src/coremods/core_who.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp index a459b49d3..14bfc89f5 100644 --- a/src/coremods/core_who.cpp +++ b/src/coremods/core_who.cpp @@ -531,7 +531,7 @@ void CommandWho::SendWhoLine(LocalUser* source, const std::vector<std::string>& if (oplevels.empty()) BuildOpLevels(); - wholine.push(memb && memb->getRank() ? oplevels[memb->GetPrefixChar()] : "n/a"); + wholine.push(memb && !memb->modes.empty() ? oplevels[memb->modes.front()] : "n/a"); } // Include the user's real name. |
