mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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
This commit is contained in:
@@ -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", "<file>");
|
||||
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]");
|
||||
|
||||
Reference in New Issue
Block a user