Added QuitMsg config option

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@166 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-23 16:14:05 +00:00
parent 9b3ac7cb94
commit 77798b286a
6 changed files with 17 additions and 2 deletions
+7 -1
View File
@@ -454,6 +454,12 @@ void CUserSock::UserCommand(const string& sLine) {
pChan->DetachUser();
}
} else if (strcasecmp(sCommand.c_str(), "SHUTDOWN") == 0) {
string sQuitMsg = CUtils::Token(sLine, 1, true);
if (!sQuitMsg.empty()) {
m_pUser->SetQuitMsg(sQuitMsg);
}
throw CException(CException::EX_Shutdown);
} else if (strcasecmp(sCommand.c_str(), "JUMP") == 0) {
if (m_pUser) {
@@ -790,7 +796,7 @@ void CUserSock::HelpUser() {
Table.AddRow(); Table.SetCell("Command", "ListNicks"); Table.SetCell("Arguments", "<#chan>"); Table.SetCell("Description", "List all nicks on a channel");
Table.AddRow(); Table.SetCell("Command", "Topics"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Show topics in all channels");
Table.AddRow(); Table.SetCell("Command", "SetBuffer"); Table.SetCell("Arguments", "<#chan> [linecount]"); Table.SetCell("Description", "Set the buffer count for a channel");
Table.AddRow(); Table.SetCell("Command", "Shutdown"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Shutdown znc completely");
Table.AddRow(); Table.SetCell("Command", "Shutdown"); Table.SetCell("Arguments", "[message]"); Table.SetCell("Description", "Shutdown znc completely");
Table.AddRow(); Table.SetCell("Command", "Jump"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Jump to the next server in the list");
Table.AddRow(); Table.SetCell("Command", "Send"); Table.SetCell("Arguments", "<nick> <file>"); Table.SetCell("Description", "Send a shell file to a nick on IRC");
Table.AddRow(); Table.SetCell("Command", "Get"); Table.SetCell("Arguments", "<file>"); Table.SetCell("Description", "Send a shell file to yourself");