+ CmdResult HandleUser(LocalUser* source, const std::string& nick)
+ {
+ User* target = ServerInstance->FindNickOnly(nick);
+ if (!target || target->registered != REG_ALL)
+ {
+ source->WriteNumeric(Numerics::NoSuchNick(nick));
+ return CMD_FAILURE;
+ }
+
+ if (operonlyfp && !source->IsOper() && source != target)
+ {
+ source->WriteNumeric(ERR_NOPRIVILEGES, "You must be a server operator to view TLS (SSL) client certificate information for other users.");
+ return CMD_FAILURE;
+ }
+
+ HandleUserInternal(source, target, true);
+ return CMD_SUCCESS;
+ }
+