From 46f4a562c835dd39d2472d4010d8bb20320c861f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 23 Mar 2022 18:38:25 +0000 Subject: Fix using the prefix char instead of the prefix letter in oplevels. --- src/coremods/core_who.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/coremods') 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& 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. -- cgit v1.3.1-10-gc9f91