diff --git a/ClientCommand.cpp b/ClientCommand.cpp index 45972545..b5014cf0 100644 --- a/ClientCommand.cpp +++ b/ClientCommand.cpp @@ -965,7 +965,7 @@ void CClient::UserCommand(const CString& sLine) { Table.SetCell("Total", CString::ToByteStr(Total.first + Total.second)); PutStatus(Table); - } else if (m_pUser->IsAdmin() && sCommand.Equals("UPTIME")) { + } else if (sCommand.Equals("UPTIME")) { PutStatus("Running for " + CZNC::Get().GetUptime()); } else { PutStatus("Unknown command [" + sCommand + "] try 'Help'"); @@ -1119,6 +1119,11 @@ void CClient::HelpUser() { Table.SetCell("Arguments", ""); Table.SetCell("Description", "Send a shell file to yourself"); + Table.AddRow(); + Table.SetCell("Command", "Uptime"); + Table.SetCell("Arguments", ""); + Table.SetCell("Description", "Show how long ZNC is already running"); + if (!m_pUser->DenyLoadMod()) { Table.AddRow(); Table.SetCell("Command", "LoadMod"); @@ -1189,11 +1194,6 @@ void CClient::HelpUser() { Table.SetCell("Arguments", ""); Table.SetCell("Description", "Show basic traffic stats for all znc users"); - Table.AddRow(); - Table.SetCell("Command", "Uptime"); - Table.SetCell("Arguments", ""); - Table.SetCell("Description", "Show how long ZNC is already running"); - Table.AddRow(); Table.SetCell("Command", "Broadcast"); Table.SetCell("Arguments", "[message]");