Fix GNU++98 compatibility.

This commit is contained in:
Sadie Powell 2022-03-24 01:42:32 +00:00
parent 46f4a562c8
commit 42c97a9e70

View File

@ -531,7 +531,7 @@ void CommandWho::SendWhoLine(LocalUser* source, const std::vector<std::string>&
if (oplevels.empty())
BuildOpLevels();
wholine.push(memb && !memb->modes.empty() ? oplevels[memb->modes.front()] : "n/a");
wholine.push(memb && !memb->modes.empty() ? oplevels[memb->modes[0]] : "n/a");
}
// Include the user's real name.