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:
cflakes
2010-02-18 14:15:39 +00:00
parent 7b34f1e4b7
commit 122ef38fb0
+7 -2
View File
@@ -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();