Added Version command

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@225 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-01 20:29:40 +00:00
parent 3ceb15a975
commit 70fc1ed06e
+3
View File
@@ -454,6 +454,8 @@ void CUserSock::UserCommand(const string& sLine) {
PutStatus("Detaching you from [" + sChan + "]");
pChan->DetachUser();
}
} else if (strcasecmp(sCommand.c_str(), "VERSION") == 0) {
PutStatus(CZNC::GetTag());
} else if (strcasecmp(sCommand.c_str(), "SHUTDOWN") == 0) {
string sQuitMsg = CUtils::Token(sLine, 1, true);
@@ -856,6 +858,7 @@ void CUserSock::HelpUser() {
Table.AddColumn("Arguments");
Table.AddColumn("Description");
Table.AddRow(); Table.SetCell("Command", "Version"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Prints which version of znc this is");
Table.AddRow(); Table.SetCell("Command", "ListDCCs"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "List all active DCCs");
Table.AddRow(); Table.SetCell("Command", "ListMods"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "List all loaded modules");
Table.AddRow(); Table.SetCell("Command", "ListChans"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "List all channels");