mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add support for an optional user-specified quit message to the DISCONNECT command that would be used instead of the message specified in the config file.
Patch by reed! Thanks! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1926 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -249,7 +249,8 @@ void CClient::UserCommand(CString& sLine) {
|
||||
// to the IRC server was established. Before this we can
|
||||
// only find the IRC socket by its name.
|
||||
if (GetIRCSock()) {
|
||||
GetIRCSock()->Quit();
|
||||
CString sQuitMsg = sLine.Token(1, true);
|
||||
GetIRCSock()->Quit(sQuitMsg);
|
||||
} else {
|
||||
Csock* pIRCSock;
|
||||
CString sSockName = "IRC::" + m_pUser->GetUserName();
|
||||
@@ -1190,6 +1191,7 @@ void CClient::HelpUser() {
|
||||
|
||||
Table.AddRow();
|
||||
Table.SetCell("Command", "Disconnect");
|
||||
Table.SetCell("Arguments", "[message]");
|
||||
Table.SetCell("Description", "Disconnect from IRC");
|
||||
|
||||
Table.AddRow();
|
||||
|
||||
Reference in New Issue
Block a user