From aae356c8d58c5b14d10779254022451d7b62c9d4 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 27 May 2009 13:28:58 +0000 Subject: [PATCH] Let everyone use /msg *status uptime, not only admins git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1526 726aef4b-f618-498e-8847-2d620e286838 --- ClientCommand.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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]");