mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +02:00
Added a missing error message to UpdateMod plus cleaned up two more lines of /znc help.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1772 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+7
-2
@@ -778,6 +778,11 @@ void CClient::UserCommand(CString& sLine) {
|
||||
#else
|
||||
CString sMod = sLine.Token(1);
|
||||
|
||||
if (sMod.empty()) {
|
||||
PutStatus("Usage: UpdateMod <module>");
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pUser->DenyLoadMod() || !m_pUser->IsAdmin()) {
|
||||
PutStatus("Unable to reload [" + sMod + "] Access Denied.");
|
||||
return;
|
||||
@@ -1047,7 +1052,7 @@ void CClient::HelpUser() {
|
||||
|
||||
Table.AddRow();
|
||||
Table.SetCell("Command", "RemServer");
|
||||
Table.SetCell("Arguments", "<host>");
|
||||
Table.SetCell("Arguments", "<host> [port] [pass]");
|
||||
Table.SetCell("Description", "Remove a server from the list");
|
||||
|
||||
Table.AddRow();
|
||||
@@ -1086,7 +1091,7 @@ void CClient::HelpUser() {
|
||||
if (m_pUser->IsAdmin()) {
|
||||
Table.AddRow();
|
||||
Table.SetCell("Command", "AddVHost");
|
||||
Table.SetCell("Arguments", "<vhost (ip preferred)>");
|
||||
Table.SetCell("Arguments", "<vhost (IP preferred)>");
|
||||
Table.SetCell("Description", "Adds a VHost for normal users to use");
|
||||
|
||||
Table.AddRow();
|
||||
|
||||
Reference in New Issue
Block a user